diff --git a/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs b/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs index b27bed753bbc..986e6c2293f4 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs +++ b/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ActivityLogAlert")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.3")] +[assembly: System.Reflection.AssemblyVersionAttribute("6.0.3")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/Monitor/ActivityLogAlert.Autorest/README.md b/src/Monitor/ActivityLogAlert.Autorest/README.md index f111d1b03168..005ea646bb10 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/README.md +++ b/src/Monitor/ActivityLogAlert.Autorest/README.md @@ -39,69 +39,13 @@ title: ActivityLogAlert module-version: 0.1.0 subject-prefix: ActivityLogAlert namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert -resourcegroup-append: true -nested-object-to-string: true - -# If there are post APIs for some kinds of actions in the RP, you may need to -# uncomment following line to support viaIdentity for these post APIs -# identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" directive: - - where: - verb: Get - subject: ActivityLogAlert - set: - breaking-change: - deprecated-output-properties: - - ActionGroup - - ConditionAllOf - - Scope - new-output-properties: - - ActionGroup - - ConditionAllOf - - Scope - change-description: The types of the properties ActionGroup, ConditionAllOf and Scope will be changed from single object or fixed array to 'List'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - - where: - verb: New|Update - subject: ActivityLogAlert - set: - breaking-change: - deprecated-output-properties: - - ActionGroup - - ConditionAllOf - - Scope - - AnyOf - new-output-properties: - - ActionGroup - - ConditionAllOf - - Scope - - AnyOf - change-description: The types of the properties ActionGroup, ConditionAllOf, Scope and AnyOf will be changed from single object or fixed array to 'List'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - - where: - parameter-name: Action|Condition|Scope - set: - breaking-change: - old-parameter-type: Array - new-parameter-type: List - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true # Remove Set cmdlet - where: @@ -131,7 +75,7 @@ directive: subject-prefix: "" # Add breaking change for them, will add back. - model-cmdlet: - # - AlertRuleAnyOfOrLeafCondition - # - AlertRuleLeafCondition - - ActionGroup + - model-name: AlertRuleAnyOfOrLeafCondition + - model-name: AlertRuleLeafCondition + - model-name: ActionGroup ``` diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlert.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlert.ps1 index 8f86b4455bc8..3c78126f0615 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlert.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlert.ps1 @@ -20,12 +20,17 @@ Create a new Activity Log Alert rule or update an existing one. .Description Create a new Activity Log Alert rule or update an existing one. .Example -{{ Add code here }} -.Example -{{ Add code here }} +$scope = "/subscriptions/"+(Get-AzContext).Subscription.ID +$actiongroup=New-AzActivityLogAlertActionGroupObject -Id $ActionGroupResourceId -WebhookProperty @{"sampleWebhookProperty"="SamplePropertyValue"} +$condition1=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Administrative -Field category +$condition2=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Error -Field level +$any1=New-AzActivityLogAlertAlertRuleLeafConditionObject -Field properties.incidentType -Equal Maintenance +$any2=New-AzActivityLogAlertAlertRuleLeafConditionObject -Field properties.incidentType -Equal Incident +$condition3=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -AnyOf $any1,$any2 +New-AzActivityLogAlert -Name $AlertName -ResourceGroupName $ResourceGroupName -Action $actiongroup -Condition @($condition1,$condition2,$condition3) -Location global -Scope $scope .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,18 +42,18 @@ ACTIONGROUP : The list of the Action Groups. [(Any) ]: This indicates any property can be added to this object. CONDITIONALLOF : The list of Activity Log Alert rule conditions. - [ContainsAny ]: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. + [ContainsAny >]: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. [Equal ]: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. [Field ]: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. - [AnyOf ]: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. - [ContainsAny ]: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. + [AnyOf >]: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. + [ContainsAny >]: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. [Equal ]: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. [Field ]: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'. .Link https://learn.microsoft.com/powershell/module/az.monitor/new-azactivitylogalert #> function New-AzActivityLogAlert { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -72,43 +77,43 @@ function New-AzActivityLogAlert { # The ID of the target subscription. ${SubscriptionId}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroup[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup[]] # The list of the Action Groups. # To construct, see NOTES section for ACTIONGROUP properties and create a hash table. ${Action}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleAnyOfOrLeafCondition[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition[]] # The list of Activity Log Alert rule conditions. # To construct, see NOTES section for CONDITIONALLOF properties and create a hash table. ${Condition}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] [System.String] # A description of this Activity Log Alert rule. ${Description}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] [System.Boolean] # Indicates whether this Activity Log Alert rule is enabled. # If an Activity Log Alert rule is not enabled, then none of its actions will be activated. ${Enabled}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] [System.String] # The location of the resource. # Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'. ${Location}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] [System.String[]] @@ -117,19 +122,32 @@ function New-AzActivityLogAlert { # This list must include at least one item. ${Scope}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAzureResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAzureResourceTags]))] [System.Collections.Hashtable] # The tags of the resource. ${Tag}, + + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/Update-AzActivityLogAlert.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/Update-AzActivityLogAlert.ps1 index e6d9babf5a46..ef3c6b08534f 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/Update-AzActivityLogAlert.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/Update-AzActivityLogAlert.ps1 @@ -24,14 +24,12 @@ Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. .Example -{{ Add code here }} -.Example -{{ Add code here }} +Update-AzActivityLogAlert -ResourceGroupName $ResourceGroupName -Name $AlertName -Tag @{"key"="val"} -Enabled $false .Inputs Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource .Notes COMPLEX PARAMETER PROPERTIES @@ -46,10 +44,12 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.monitor/update-azactivitylogalert #> function Update-AzActivityLogAlert { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Alias('ActivityLogAlertName')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Path')] [System.String] @@ -57,6 +57,8 @@ function Update-AzActivityLogAlert { ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Path')] [System.String] # The name of the resource group. @@ -64,6 +66,8 @@ function Update-AzActivityLogAlert { ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaJsonFilePath')] + [Parameter(ParameterSetName='UpdateViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -77,26 +81,41 @@ function Update-AzActivityLogAlert { # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] [System.Boolean] # Indicates whether this Activity Log Alert rule is enabled. # If an Activity Log Alert rule is not enabled, then none of its actions will be activated. ${Enabled}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRulePatchObjectTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRulePatchObjectTags]))] [System.Collections.Hashtable] # The resource tags ${Tag}, + + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertActionGroupObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertActionGroupObject.ps1 index 806d0d3471ba..95220a2c50af 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertActionGroupObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertActionGroupObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for ActionGroup. Create an in-memory object for ActionGroup. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup +Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroup .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertActionGroupObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertactiongroupobject #> function New-AzActivityLogAlertActionGroupObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroup')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,12 +35,12 @@ function New-AzActivityLogAlertActionGroupObject { [string] $Id, [Parameter(HelpMessage="the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroupWebhookProperties] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroupWebhookProperties] $WebhookProperty ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroup]::New() if ($PSBoundParameters.ContainsKey('Id')) { $Object.Id = $Id diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 similarity index 74% rename from src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 rename to src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 index ee575426dac8..4436bc685599 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 @@ -21,20 +21,19 @@ Create an in-memory object for AlertRuleAnyOfOrLeafCondition. Create an in-memory object for AlertRuleAnyOfOrLeafCondition. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition +Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleanyoforleafconditionobject #> function New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition","15.0.0", "7.0.0", "2025/11/03", DeprecatedOutputProperties='"ContainsAny","AnyOf[]"', NewOutputProperties='"List[ContainsAny]","List[AnyOf]"')] - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("AnyOf", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] + [Parameter(HelpMessage="An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition[]] $AnyOf, - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("ContainsAny", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.")] [string[]] $ContainsAny, @@ -48,7 +47,7 @@ function New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition]::New() if ($PSBoundParameters.ContainsKey('AnyOf')) { $Object.AnyOf = $AnyOf diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 similarity index 78% rename from src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 rename to src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 index 500f2f852f54..b6fb0d190c0c 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 @@ -21,16 +21,16 @@ Create an in-memory object for AlertRuleLeafCondition. Create an in-memory object for AlertRuleLeafCondition. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition +Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleleafconditionobject #> function New-AzActivityLogAlertAlertRuleLeafConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition", "15.0.0", "7.0.0", "2025/11/03", DeprecatedOutputProperties="ContainsAny", NewOutputProperties="List[ContainsAny]")] - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("ContainsAny", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] + [Parameter(HelpMessage="The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.")] [string[]] $ContainsAny, @@ -44,7 +44,7 @@ function New-AzActivityLogAlertAlertRuleLeafConditionObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition]::New() if ($PSBoundParameters.ContainsKey('ContainsAny')) { $Object.ContainsAny = $ContainsAny diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md index 463955c13f70..14dd97cec969 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md @@ -1,6 +1,6 @@ --- Module Name: Az.ActivityLogAlert -Module Guid: 83e58f08-b015-404d-8cf1-9115293f74af +Module Guid: e90c5cc6-1740-41fc-b428-ff95e61b80d4 Download Help Link: https://learn.microsoft.com/powershell/module/az.activitylogalert Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md index 7a46f565ad2f..8f5a5f2f70e1 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md @@ -81,7 +81,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity @@ -150,7 +149,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md index c70aac582de3..ed4e232f21eb 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md @@ -12,6 +12,7 @@ Create a new Activity Log Alert rule or update an existing one. ## SYNTAX +### CreateExpanded (Default) ``` New-AzActivityLogAlert -Name -ResourceGroupName -Action -Condition -Location -Scope [-SubscriptionId ] @@ -19,6 +20,18 @@ New-AzActivityLogAlert -Name -ResourceGroupName -Action ] ``` +### CreateViaJsonFilePath +``` +New-AzActivityLogAlert -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzActivityLogAlert -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Create a new Activity Log Alert rule or update an existing one. @@ -43,11 +56,10 @@ Create activity log alert for subscription, when `$condition1` and `$condition2` ### -Action The list of the Action Groups. To construct, see NOTES section for ACTIONGROUP properties and create a hash table. -To construct, see NOTES section for ACTION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroup[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -60,11 +72,10 @@ Accept wildcard characters: False ### -Condition The list of Activity Log Alert rule conditions. To construct, see NOTES section for CONDITIONALLOF properties and create a hash table. -To construct, see NOTES section for CONDITION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleAnyOfOrLeafCondition[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -75,7 +86,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -94,7 +106,7 @@ A description of this Activity Log Alert rule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -110,7 +122,7 @@ If an Activity Log Alert rule is not enabled, then none of its actions will be a ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -120,13 +132,43 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -174,7 +216,7 @@ This list must include at least one item. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -204,7 +246,7 @@ The tags of the resource. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -252,7 +294,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md index 5553b9f23d22..284f7c70ec8e 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertActionGroupObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertactiongroupobject schema: 2.0.0 --- @@ -50,10 +50,9 @@ Accept wildcard characters: False ### -WebhookProperty the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. -To construct, see NOTES section for WEBHOOKPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroupWebhookProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroupWebhookProperties Parameter Sets: (All) Aliases: @@ -71,7 +70,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroup ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md index 1bf4e1145e44..090d57ae8db9 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleanyoforleafconditionobject schema: 2.0.0 --- @@ -41,10 +41,9 @@ Create alert rule condition with leaf condition ### -AnyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. -To construct, see NOTES section for ANYOF properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition[] Parameter Sets: (All) Aliases: @@ -108,7 +107,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md index ad8f7527e3cf..32ef15d0802d 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleleafconditionobject schema: 2.0.0 --- @@ -84,7 +84,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md index 384c75743a68..730ac2712303 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md @@ -64,7 +64,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md index e88a55bd9bbd..aa4f5f67893d 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md @@ -27,6 +27,18 @@ Update-AzActivityLogAlert -InputObject [-Enabled ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzActivityLogAlert -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzActivityLogAlert -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. @@ -44,7 +56,8 @@ Disable activity log alert, add tag "key":"val" ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -64,7 +77,7 @@ If an Activity Log Alert rule is not enabled, then none of its actions will be a ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -90,12 +103,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the Activity Log Alert rule. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ActivityLogAlertName Required: True @@ -111,7 +154,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -126,7 +169,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -141,7 +184,7 @@ The resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -191,7 +234,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json index ae546df56f8f..290b86f34f0f 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json +++ b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "8b11ea6d-f253-44c4-8fa0-a99b6d6e2f72" + "generate_Id": "f24928e3-4b8d-45f5-9497-b8bcb83c2587" } diff --git a/src/Monitor/ActivityLogAlert.Autorest/test/ActivityLogAlert.Recording.json b/src/Monitor/ActivityLogAlert.Autorest/test/ActivityLogAlert.Recording.json index cb11e1257b87..27c8caad6414 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/test/ActivityLogAlert.Recording.json +++ b/src/Monitor/ActivityLogAlert.Autorest/test/ActivityLogAlert.Recording.json @@ -1,9 +1,9 @@ { - "ActivityLogAlert+[NoContext]+CRUD+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01+1": { + "ActivityLogAlert+[NoContext]+CRUD+$PUT+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01", - "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"scopes\": [ \"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\" ]\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01", + "Content": "{\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"scopes\": [ \"subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\" ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,41 +17,44 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "6cd44502-06ff-43ce-8319-d02681075476", "6cd44502-06ff-43ce-8319-d02681075476" ], - "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f35353e4-93c1-4845-ae9f-c9fdbf47d613", "f35353e4-93c1-4845-ae9f-c9fdbf47d613" ], + "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview" ], "Arr-Disable-Session-Affinity": [ "true" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "6cd44502-06ff-43ce-8319-d02681075476" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220915T085540Z:6cd44502-06ff-43ce-8319-d02681075476" ], - "Date": [ "Thu, 15 Sep 2022 08:55:39 GMT" ] + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=0f876fc3-c749-4607-ad50-c13ef1569cea/southeastasia/29c0f97e-8f9b-4605-bf82-de02539f6935" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-correlation-request-id": [ "f35353e4-93c1-4845-ae9f-c9fdbf47d613" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250627T074932Z:f35353e4-93c1-4845-ae9f-c9fdbf47d613" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4CDA847DF123420995F4A9524DDFA673 Ref B: MAA201060514033 Ref C: 2025-06-27T07:49:28Z" ], + "Date": [ "Fri, 27 Jun 2025 07:49:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1324" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/activityLogAlerts/test-alertyrkbq0\",\r\n \"name\": \"test-alertyrkbq0\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", + "Content": "{\r\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le\",\r\n \"name\": \"test-alertbxa4le\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", "isContentBase64": false } }, - "ActivityLogAlert+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01+2": { + "ActivityLogAlert+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "d0494945-8d40-4ee6-a71c-e8247c16de75" ], + "x-ms-client-request-id": [ "9c23a1ee-c107-4353-b07f-9d4c9d841f99" ], "CommandName": [ "Get-AzActivityLogAlert" ], "FullCommandName": [ "Get-AzActivityLogAlert_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.6", "Az.ActivityLogAlert/0.1.0" ], + "User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.ActivityLogAlert/6.0.2" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,32 +66,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "b783d0b0-cb8b-44ba-9de0-71056da8a9ba", "b783d0b0-cb8b-44ba-9de0-71056da8a9ba" ], - "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "85dbf605-12e7-4728-b0b6-2bd136c7c48f", "85dbf605-12e7-4728-b0b6-2bd136c7c48f" ], + "x-ms-orig-api-version": [ "2020-10-01" ], + "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview" ], "Arr-Disable-Session-Affinity": [ "true" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "b783d0b0-cb8b-44ba-9de0-71056da8a9ba" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220915T085540Z:b783d0b0-cb8b-44ba-9de0-71056da8a9ba" ], - "Date": [ "Thu, 15 Sep 2022 08:55:40 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-correlation-request-id": [ "85dbf605-12e7-4728-b0b6-2bd136c7c48f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250627T074933Z:85dbf605-12e7-4728-b0b6-2bd136c7c48f" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: ED6A8800F402486CA33B493DE91116EB Ref B: MAA201060514033 Ref C: 2025-06-27T07:49:33Z" ], + "Date": [ "Fri, 27 Jun 2025 07:49:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1339" ], + "Content-Length": [ "1324" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/activityLogAlerts/test-alertyrkbq0\",\r\n \"name\": \"test-alertyrkbq0\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"Global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", + "Content": "{\r\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le\",\r\n \"name\": \"test-alertbxa4le\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", "isContentBase64": false } }, - "ActivityLogAlert+[NoContext]+CRUD+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01+3": { + "ActivityLogAlert+[NoContext]+CRUD+$PATCH+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01+3": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01", "Content": "{\r\n \"tags\": {\r\n \"key\": \"val\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -104,41 +110,44 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "e4c800fd-a1a9-403e-a868-1d7ba92e8884", "e4c800fd-a1a9-403e-a868-1d7ba92e8884" ], - "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "72137604-c972-41f3-ae90-4faeadeb6420", "72137604-c972-41f3-ae90-4faeadeb6420" ], + "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview" ], "Arr-Disable-Session-Affinity": [ "true" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "e4c800fd-a1a9-403e-a868-1d7ba92e8884" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220915T085544Z:e4c800fd-a1a9-403e-a868-1d7ba92e8884" ], - "Date": [ "Thu, 15 Sep 2022 08:55:44 GMT" ] + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=0f876fc3-c749-4607-ad50-c13ef1569cea/southeastasia/545b37e9-357d-4822-a3ed-0d88eb0bc350" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-correlation-request-id": [ "72137604-c972-41f3-ae90-4faeadeb6420" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250627T074939Z:72137604-c972-41f3-ae90-4faeadeb6420" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CE8D842B21C144309667DF2243D4ACF8 Ref B: MAA201060514033 Ref C: 2025-06-27T07:49:33Z" ], + "Date": [ "Fri, 27 Jun 2025 07:49:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1361" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/activityLogAlerts/test-alertyrkbq0\",\r\n \"name\": \"test-alertyrkbq0\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key\": \"val\"\r\n },\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", + "Content": "{\r\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le\",\r\n \"name\": \"test-alertbxa4le\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key\": \"val\"\r\n },\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", "isContentBase64": false } }, - "ActivityLogAlert+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01+4": { + "ActivityLogAlert+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "b7aa6a80-474d-47de-9d40-3cf32e7c1e05" ], + "x-ms-client-request-id": [ "b2625741-009f-4f2a-ba41-fc884d83b6e6" ], "CommandName": [ "Get-AzActivityLogAlert" ], "FullCommandName": [ "Get-AzActivityLogAlert_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.6", "Az.ActivityLogAlert/0.1.0" ], + "User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.ActivityLogAlert/6.0.2" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -150,41 +159,44 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Vary": [ "Accept-Encoding" ], - "x-ms-request-id": [ "d4367656-3204-4f97-9784-c61924cc4dee", "d4367656-3204-4f97-9784-c61924cc4dee" ], - "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "ded258e8-3b92-4b07-b6bb-7d63e72581d0", "ded258e8-3b92-4b07-b6bb-7d63e72581d0" ], + "x-ms-orig-api-version": [ "2020-10-01" ], + "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview" ], "Arr-Disable-Session-Affinity": [ "true" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "d4367656-3204-4f97-9784-c61924cc4dee" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220915T085545Z:d4367656-3204-4f97-9784-c61924cc4dee" ], - "Date": [ "Thu, 15 Sep 2022 08:55:44 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-correlation-request-id": [ "ded258e8-3b92-4b07-b6bb-7d63e72581d0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250627T074940Z:ded258e8-3b92-4b07-b6bb-7d63e72581d0" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: AC0FBB8825B64314B117F7AC3F03F0C4 Ref B: MAA201060514033 Ref C: 2025-06-27T07:49:39Z" ], + "Date": [ "Fri, 27 Jun 2025 07:49:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1361" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/activityLogAlerts/test-alertyrkbq0\",\r\n \"name\": \"test-alertyrkbq0\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key\": \"val\"\r\n },\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", + "Content": "{\r\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le\",\r\n \"name\": \"test-alertbxa4le\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key\": \"val\"\r\n },\r\n \"properties\": {\r\n \"scopes\": [\r\n \"subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\"\r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": \"category\",\r\n \"equals\": \"Administrative\"\r\n },\r\n {\r\n \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n \"anyOf\": [\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Maintenance\"\r\n },\r\n {\r\n \"field\": \"properties.incidentType\",\r\n \"equals\": \"Incident\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu\",\r\n \"webhookProperties\": {\r\n \"sampleWebhookProperty\": \"SamplePropertyValue\"\r\n }\r\n }\r\n ]\r\n },\r\n \"enabled\": false\r\n }\r\n}", "isContentBase64": false } }, - "ActivityLogAlert+[NoContext]+CRUD+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01+5": { + "ActivityLogAlert+[NoContext]+CRUD+$DELETE+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/Microsoft.Insights/activityLogAlerts/test-alertyrkbq0?api-version=2020-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/Microsoft.Insights/activityLogAlerts/test-alertbxa4le?api-version=2020-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "0a05293a-1901-4541-8cba-ea2cb1fae9a2" ], + "x-ms-client-request-id": [ "3d33f2c9-fc39-4d69-ad14-ca8d03f93414" ], "CommandName": [ "Remove-AzActivityLogAlert" ], "FullCommandName": [ "Remove-AzActivityLogAlert_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.6", "Az.ActivityLogAlert/0.1.0" ], + "User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.ActivityLogAlert/6.0.2" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -195,18 +207,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b2fd3bea-6535-4374-a1f4-43ed618dab7e", "b2fd3bea-6535-4374-a1f4-43ed618dab7e" ], - "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "9d8bf6f1-30da-4722-905b-065f0171ce6b", "9d8bf6f1-30da-4722-905b-065f0171ce6b" ], + "api-supported-versions": [ "2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview" ], "Arr-Disable-Session-Affinity": [ "true" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-IIS/10.0" ], "X-AspNet-Version": [ "4.0.30319" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "b2fd3bea-6535-4374-a1f4-43ed618dab7e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220915T085549Z:b2fd3bea-6535-4374-a1f4-43ed618dab7e" ], - "Date": [ "Thu, 15 Sep 2022 08:55:48 GMT" ] + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=0f876fc3-c749-4607-ad50-c13ef1569cea/southeastasia/30c811c6-fec8-4ae4-b27e-6dafac3fb61e" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "2999" ], + "x-ms-correlation-request-id": [ "9d8bf6f1-30da-4722-905b-065f0171ce6b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250627T074945Z:9d8bf6f1-30da-4722-905b-065f0171ce6b" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C94D6127CD544FD6AF7190DECFAD6DEC Ref B: MAA201060514033 Ref C: 2025-06-27T07:49:40Z" ], + "Date": [ "Fri, 27 Jun 2025 07:49:45 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/Monitor/ActivityLogAlert.Autorest/test/env.json b/src/Monitor/ActivityLogAlert.Autorest/test/env.json index 2e3caa6f22ce..13f4ac4a3cf9 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/test/env.json +++ b/src/Monitor/ActivityLogAlert.Autorest/test/env.json @@ -1,10 +1,10 @@ { - "alertName": "test-alertyrkbq0", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "scope": "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f", - "resourceGroupName": "activity-log-alert-groupyfzqpb", - "receiverName": "test-receiver3y1ij2", - "actionGroupResourceId": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/activity-log-alert-groupyfzqpb/providers/microsoft.insights/actionGroups/test-action-groupyd95li", - "actionGroupName": "test-action-groupyd95li", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + "receiverName": "test-receiverpmv1lk", + "alertName": "test-alertbxa4le", + "SubscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "scope": "subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "actionGroupResourceId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/activity-log-alert-groupna6h35/providers/microsoft.insights/actionGroups/test-action-groupaxw5nu", + "actionGroupName": "test-action-groupaxw5nu", + "resourceGroupName": "activity-log-alert-groupna6h35", + "Tenant": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" } diff --git a/src/Monitor/ActivityLogAlert.Autorest/test/utils.ps1 b/src/Monitor/ActivityLogAlert.Autorest/test/utils.ps1 index 8c4095acb877..3c31a5c882e8 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/test/utils.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/test/utils.ps1 @@ -56,10 +56,11 @@ function setupEnv() { $actionGroupName = 'test-action-group' + (RandomString -allChars $false -len 6) $null = $env.Add("receiverName", $receiverName) $null = $env.Add("actionGroupName", $actionGroupName) - $script = {param([string]$actionGroupName, [string]$receiverName, [string]$resourceGroupName); write-host "start to create action group $actionGroupName"; Import-Module Az.Monitor; $receiver = New-AzActionGroupReceiver -Name $receiverName -EmailAddress test@microsoft.com; Set-AzActionGroup -ResourceGroupName $resourceGroupName -Name $actionGroupName -ShortName 'short' -Receiver $receiver} + $script = {param([string]$actionGroupName, [string]$receiverName, [string]$resourceGroupName); write-host "start to create action group $actionGroupName"; Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version; Import-Module Az.Monitor; $email = New-AzActionGroupEmailReceiverObject -EmailAddress test@microsoft.com -Name $receiverName; New-AzActionGroup -Name $actionGroupName -ResourceGroupName $resourceGroupName -Location eastus -GroupShortName 'short' -EmailReceiver $email} $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path & "$pwsh" -NonInteractive -NoLogo -NoProfile -Command "& {$script} $actionGroupName $receiverName $resourceGroupName" + $null = $env.Add("actionGroupResourceId", "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroupName)/providers/microsoft.insights/actionGroups/$($env.actionGroupName)") $null = $env.Add('alertName', 'test-alert' + (RandomString -allChars $false -len 6)) diff --git a/src/Monitor/Monitor.sln b/src/Monitor/Monitor.sln index d43fcb5ea1c7..49665d92f2d9 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -37,8 +37,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFx", "..\..\tools\TestF EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActionGroup", "..\..\generated\Monitor\ActionGroup.Autorest\Az.ActionGroup.csproj", "{D76924F4-9611-46DC-8F04-B15A105806B8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{803B981D-ED22-4DFF-90FA-C278DE8D228B}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PipelineGroup", "..\..\generated\Monitor\PipelineGroup.Autorest\Az.PipelineGroup.csproj", "{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{988AD78A-B61E-4D34-968B-05A014140ACF}" @@ -47,30 +45,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataCollectionRule.Autorest EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataCollectionRule", "..\..\generated\Monitor\DataCollectionRule.Autorest\Az.DataCollectionRule.csproj", "{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metricdata.Autorest", "Metricdata.Autorest", "{97973F8C-3EE1-368A-3B71-C62280C2DC8C}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Metricdata", "..\..\generated\Monitor\Metricdata.Autorest\Az.Metricdata.csproj", "{ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{81F263BA-D395-42CB-A7E0-AFC20029C4BC}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DiagnosticSetting.Autorest", "DiagnosticSetting.Autorest", "{4644B825-05AB-0B45-5567-89C0D700A638}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DiagnosticSetting", "..\..\generated\Monitor\DiagnosticSetting.Autorest\Az.DiagnosticSetting.csproj", "{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MonitorWorkspace.Autorest", "MonitorWorkspace.Autorest", "{635E4282-7AFB-1B5B-749B-823438FF2057}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ScheduledQueryRule.Autorest", "ScheduledQueryRule.Autorest", "{DFE9A16E-4879-AFA3-BD8B-DBC73F42D0CA}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ScheduledQueryRule", "..\..\generated\Monitor\ScheduledQueryRule.Autorest\Az.ScheduledQueryRule.csproj", "{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{EF866102-349E-4B1A-A159-0C3EC16B34F6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -249,18 +237,6 @@ Global {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x64.Build.0 = Release|Any CPU {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x86.ActiveCfg = Release|Any CPU {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x86.Build.0 = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x64.ActiveCfg = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x64.Build.0 = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x86.ActiveCfg = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x86.Build.0 = Debug|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|Any CPU.Build.0 = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x64.ActiveCfg = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x64.Build.0 = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x86.ActiveCfg = Release|Any CPU - {803B981D-ED22-4DFF-90FA-C278DE8D228B}.Release|x86.Build.0 = Release|Any CPU {BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|Any CPU.Build.0 = Debug|Any CPU {BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -297,42 +273,18 @@ Global {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x64.Build.0 = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.ActiveCfg = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x64.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x64.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x86.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x86.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|Any CPU.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.Build.0 = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x64.ActiveCfg = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x64.Build.0 = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x86.ActiveCfg = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x86.Build.0 = Debug|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|Any CPU.Build.0 = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x64.ActiveCfg = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x64.Build.0 = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x86.ActiveCfg = Release|Any CPU - {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x86.Build.0 = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.Build.0 = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.ActiveCfg = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.Build.0 = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.ActiveCfg = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.Build.0 = Debug|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.ActiveCfg = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.Build.0 = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.ActiveCfg = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.Build.0 = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.ActiveCfg = Release|Any CPU - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.Build.0 = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x64.ActiveCfg = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x64.Build.0 = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x86.ActiveCfg = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x86.Build.0 = Debug|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|Any CPU.Build.0 = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x64.ActiveCfg = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x64.Build.0 = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x86.ActiveCfg = Release|Any CPU + {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x86.Build.0 = Release|Any CPU {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.Build.0 = Debug|Any CPU {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -345,30 +297,18 @@ Global {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x64.Build.0 = Release|Any CPU {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.ActiveCfg = Release|Any CPU {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x64.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x64.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x86.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x86.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|Any CPU.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x64.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x64.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.Build.0 = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.ActiveCfg = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.Build.0 = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.ActiveCfg = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.Build.0 = Debug|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.Build.0 = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.ActiveCfg = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.Build.0 = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.ActiveCfg = Release|Any CPU - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.Build.0 = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.Build.0 = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.ActiveCfg = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.Build.0 = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.ActiveCfg = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.Build.0 = Debug|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.ActiveCfg = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.Build.0 = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.ActiveCfg = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.Build.0 = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.ActiveCfg = Release|Any CPU + {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.Build.0 = Release|Any CPU {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|Any CPU.Build.0 = Debug|Any CPU {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -381,18 +321,30 @@ Global {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Release|x64.Build.0 = Release|Any CPU {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Release|x86.ActiveCfg = Release|Any CPU {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Release|x86.Build.0 = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x64.ActiveCfg = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x64.Build.0 = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x86.ActiveCfg = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Debug|x86.Build.0 = Debug|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|Any CPU.Build.0 = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x64.ActiveCfg = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x64.Build.0 = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x86.ActiveCfg = Release|Any CPU - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}.Release|x86.Build.0 = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.ActiveCfg = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.Build.0 = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.ActiveCfg = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.Build.0 = Debug|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.Build.0 = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.ActiveCfg = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.Build.0 = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.ActiveCfg = Release|Any CPU + {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.Build.0 = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|x64.ActiveCfg = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|x64.Build.0 = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|x86.ActiveCfg = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Debug|x86.Build.0 = Debug|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|Any CPU.Build.0 = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|x64.ActiveCfg = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|x64.Build.0 = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|x86.ActiveCfg = Release|Any CPU + {EF866102-349E-4B1A-A159-0C3EC16B34F6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -412,14 +364,6 @@ Global {B54BD1A5-F4AB-485B-8478-520B6AA1E9E7} = {5E1B5E7C-8C9C-47AD-8F8F-19628E8D1B34} {0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F} {138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0} - {0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C} - {0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE} - {A3CBC4A9-A39C-4343-99F2-F3F53F20049B} = {DFE9A16E-4879-AFA3-BD8B-DBC73F42D0CA} - {81F263BA-D395-42CB-A7E0-AFC20029C4BC} = {F5B68159-9278-7C75-41B6-315547561DBE} - {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033} = {4644B825-05AB-0B45-5567-89C0D700A638} - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} - {0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE} - {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2} = {635E4282-7AFB-1B5B-749B-823438FF2057} - {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C} + {EF866102-349E-4B1A-A159-0C3EC16B34F6} = {F5B68159-9278-7C75-41B6-315547561DBE} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index 27dbec0eb143..2ca21a8efb76 100644 --- a/src/Monitor/Monitor/Az.Monitor.psd1 +++ b/src/Monitor/Monitor/Az.Monitor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2025 +# Generated on: 8/7/2025 # @{ @@ -68,10 +68,10 @@ RequiredAssemblies = 'ActionGroup.Autorest/bin/Az.ActionGroup.private.dll', 'ScheduledQueryRule.Autorest/bin/Az.ScheduledQueryRule.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'ActionGroup.Autorest/Az.ActionGroup.format.ps1xml', @@ -198,7 +198,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Monitor' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Monitor' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -249,7 +249,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index 0d21a1c9f54d..fbc37cf7642e 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). ## Version 6.0.3 * Added breaking change announcement for below cmdlets from single object or fixed array to list. diff --git a/src/Monitor/Monitor/help/Get-AzActivityLogAlert.md b/src/Monitor/Monitor/help/Get-AzActivityLogAlert.md index 099cc7229ce9..c348f57be273 100644 --- a/src/Monitor/Monitor/help/Get-AzActivityLogAlert.md +++ b/src/Monitor/Monitor/help/Get-AzActivityLogAlert.md @@ -82,7 +82,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity @@ -151,7 +150,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzActivityLogAlert.md b/src/Monitor/Monitor/help/New-AzActivityLogAlert.md index 00904e91e4e3..b332c53ebe33 100644 --- a/src/Monitor/Monitor/help/New-AzActivityLogAlert.md +++ b/src/Monitor/Monitor/help/New-AzActivityLogAlert.md @@ -12,6 +12,7 @@ Create a new Activity Log Alert rule or update an existing one. ## SYNTAX +### CreateExpanded (Default) ``` New-AzActivityLogAlert -Name -ResourceGroupName [-SubscriptionId ] -Action -Condition -Location -Scope @@ -19,6 +20,20 @@ New-AzActivityLogAlert -Name -ResourceGroupName [-Subscription [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzActivityLogAlert -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzActivityLogAlert -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION Create a new Activity Log Alert rule or update an existing one. @@ -43,11 +58,10 @@ Create activity log alert for subscription, when `$condition1` and `$condition2` ### -Action The list of the Action Groups. To construct, see NOTES section for ACTIONGROUP properties and create a hash table. -To construct, see NOTES section for ACTION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroup[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -60,11 +74,10 @@ Accept wildcard characters: False ### -Condition The list of Activity Log Alert rule conditions. To construct, see NOTES section for CONDITIONALLOF properties and create a hash table. -To construct, see NOTES section for CONDITION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleAnyOfOrLeafCondition[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -75,7 +88,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -94,7 +108,7 @@ A description of this Activity Log Alert rule. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -110,7 +124,7 @@ If an Activity Log Alert rule is not enabled, then none of its actions will be a ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -120,13 +134,43 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -174,7 +218,7 @@ This list must include at least one item. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -204,7 +248,7 @@ The tags of the resource. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -252,7 +296,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzActivityLogAlertActionGroupObject.md b/src/Monitor/Monitor/help/New-AzActivityLogAlertActionGroupObject.md index bcbe425effdb..0539f477c869 100644 --- a/src/Monitor/Monitor/help/New-AzActivityLogAlertActionGroupObject.md +++ b/src/Monitor/Monitor/help/New-AzActivityLogAlertActionGroupObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ActivityLogAlert.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertActionGroupObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertactiongroupobject schema: 2.0.0 --- @@ -50,10 +50,9 @@ Accept wildcard characters: False ### -WebhookProperty the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. -To construct, see NOTES section for WEBHOOKPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActionGroupWebhookProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroupWebhookProperties Parameter Sets: (All) Aliases: @@ -71,7 +70,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroup +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroup ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md b/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md index 84748988fecc..f747295f3231 100644 --- a/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md +++ b/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ActivityLogAlert.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleanyoforleafconditionobject schema: 2.0.0 --- @@ -42,10 +42,9 @@ Create alert rule condition with leaf condition ### -AnyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. -To construct, see NOTES section for ANYOF properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition[] Parameter Sets: (All) Aliases: @@ -109,7 +108,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md b/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md index 627f9f4d81d3..61131a94c57f 100644 --- a/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md +++ b/src/Monitor/Monitor/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ActivityLogAlert.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azactivitylogalertalertruleleafconditionobject schema: 2.0.0 --- @@ -84,7 +84,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition ## NOTES diff --git a/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md b/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md index bc27bae4ce79..43984704a6cc 100644 --- a/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md +++ b/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md @@ -65,7 +65,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity diff --git a/src/Monitor/Monitor/help/Update-AzActivityLogAlert.md b/src/Monitor/Monitor/help/Update-AzActivityLogAlert.md index c7df6082e0e1..403918f4b247 100644 --- a/src/Monitor/Monitor/help/Update-AzActivityLogAlert.md +++ b/src/Monitor/Monitor/help/Update-AzActivityLogAlert.md @@ -21,6 +21,20 @@ Update-AzActivityLogAlert -Name -ResourceGroupName [-Subscript [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzActivityLogAlert -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaJsonString +``` +Update-AzActivityLogAlert -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzActivityLogAlert -InputObject [-Enabled ] [-Tag ] @@ -44,7 +58,8 @@ Disable activity log alert, add tag "key":"val" ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -64,7 +79,7 @@ If an Activity Log Alert rule is not enabled, then none of its actions will be a ```yaml Type: System.Boolean -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -90,12 +105,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the Activity Log Alert rule. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ActivityLogAlertName Required: True @@ -111,7 +156,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -126,7 +171,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -141,7 +186,7 @@ The resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -191,7 +236,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource ## NOTES diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv new file mode 100644 index 000000000000..bcc1c9e874bd --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv @@ -0,0 +1,16 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.Monitor","Get-AzActivityLogAlert","Get-AzActivityLogAlert","0","3000","The type of property 'ActionGroup' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup]'.","Change the type of property 'ActionGroup' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup'." +"Az.Monitor","Get-AzActivityLogAlert","Get-AzActivityLogAlert","0","3000","The type of property 'ConditionAllOf' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition]'.","Change the type of property 'ConditionAllOf' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition'." +"Az.Monitor","Get-AzActivityLogAlert","Get-AzActivityLogAlert","0","3000","The type of property 'Scope' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Scope' back to 'System.String[]'." +"Az.Monitor","New-AzActivityLogAlert","New-AzActivityLogAlert","0","3000","The type of property 'ActionGroup' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup]'.","Change the type of property 'ActionGroup' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup'." +"Az.Monitor","New-AzActivityLogAlert","New-AzActivityLogAlert","0","3000","The type of property 'ConditionAllOf' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition]'.","Change the type of property 'ConditionAllOf' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition'." +"Az.Monitor","New-AzActivityLogAlert","New-AzActivityLogAlert","0","3000","The type of property 'Scope' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Scope' back to 'System.String[]'." +"Az.Monitor","New-AzActivityLogAlert","New-AzActivityLogAlert","0","3000","The type of property 'AnyOf' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleAnyOfOrLeafCondition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition]'.","Change the type of property 'AnyOf' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition'." +"Az.Monitor","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","0","3000","The type of property 'AnyOf' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition]'.","Change the type of property 'AnyOf' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleLeafCondition'." +"Az.Monitor","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","0","3000","The type of property 'ContainsAny' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'ContainsAny' back to 'System.String[]'." +"Az.Monitor","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject","0","3000","The type of property 'ContainsAny' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'ContainsAny' back to 'System.String[]'." +"Az.Monitor","New-AzActivityLogAlertAlertRuleLeafConditionObject","New-AzActivityLogAlertAlertRuleLeafConditionObject","0","3000","The type of property 'ContainsAny' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'ContainsAny' back to 'System.String[]'." +"Az.Monitor","Update-AzActivityLogAlert","Update-AzActivityLogAlert","0","3000","The type of property 'ActionGroup' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup]'.","Change the type of property 'ActionGroup' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActionGroup'." +"Az.Monitor","Update-AzActivityLogAlert","Update-AzActivityLogAlert","0","3000","The type of property 'ConditionAllOf' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition]'.","Change the type of property 'ConditionAllOf' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IAlertRuleAnyOfOrLeafCondition'." +"Az.Monitor","Update-AzActivityLogAlert","Update-AzActivityLogAlert","0","3000","The type of property 'Scope' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Scope' back to 'System.String[]'." +"Az.Monitor","Update-AzActivityLogAlert","Update-AzActivityLogAlert","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Update-AzActivityLogAlert' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Update-AzActivityLogAlert'." \ No newline at end of file