diff --git a/src/AlertsManagement/AlertsManagement.sln b/src/AlertsManagement/AlertsManagement.sln index 1897aa12253d..0a6be2534d5d 100644 --- a/src/AlertsManagement/AlertsManagement.sln +++ b/src/AlertsManagement/AlertsManagement.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -27,58 +27,152 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AlertsManagement.Management.Sdk", "AlertsManagement.Management.Sdk\AlertsManagement.Management.Sdk.csproj", "{C806845B-B2AF-4A66-A7FB-3A013993B0DC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PrometheusRuleGroups", "..\..\generated\AlertsManagement\PrometheusRuleGroups.Autorest\Az.PrometheusRuleGroups.csproj", "{EBFC093C-316B-4ABC-ADED-5873B3EC38A0}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PrometheusRuleGroups.Autorest", "PrometheusRuleGroups.Autorest", "{209B7439-C0BE-2770-137C-76A813D98A1F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PrometheusRuleGroups", "..\..\generated\AlertsManagement\PrometheusRuleGroups.Autorest\Az.PrometheusRuleGroups.csproj", "{43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|Any CPU.Build.0 = Debug|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|x64.ActiveCfg = Debug|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|x64.Build.0 = Debug|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|x86.ActiveCfg = Debug|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Debug|x86.Build.0 = Debug|Any CPU {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|Any CPU.ActiveCfg = Release|Any CPU {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|Any CPU.Build.0 = Release|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|x64.ActiveCfg = Release|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|x64.Build.0 = Release|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|x86.ActiveCfg = Release|Any CPU + {52D2A007-3D32-4546-8B3F-1D44A7D63606}.Release|x86.Build.0 = Release|Any CPU {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|x64.ActiveCfg = Debug|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|x64.Build.0 = Debug|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|x86.ActiveCfg = Debug|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Debug|x86.Build.0 = Debug|Any CPU {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|Any CPU.ActiveCfg = Release|Any CPU {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|Any CPU.Build.0 = Release|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|x64.ActiveCfg = Release|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|x64.Build.0 = Release|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|x86.ActiveCfg = Release|Any CPU + {DFA7759C-B0E7-4D85-9E2F-EA8E2E32D66C}.Release|x86.Build.0 = Release|Any CPU {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|x64.ActiveCfg = Debug|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|x64.Build.0 = Debug|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|x86.ActiveCfg = Debug|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Debug|x86.Build.0 = Debug|Any CPU {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|Any CPU.ActiveCfg = Release|Any CPU {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|Any CPU.Build.0 = Release|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|x64.ActiveCfg = Release|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|x64.Build.0 = Release|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|x86.ActiveCfg = Release|Any CPU + {BA05E6E9-A183-4276-85FF-19E301E9A96C}.Release|x86.Build.0 = Release|Any CPU {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|x64.ActiveCfg = Debug|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|x64.Build.0 = Debug|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|x86.ActiveCfg = Debug|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Debug|x86.Build.0 = Debug|Any CPU {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|Any CPU.ActiveCfg = Release|Any CPU {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|Any CPU.Build.0 = Release|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|x64.ActiveCfg = Release|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|x64.Build.0 = Release|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|x86.ActiveCfg = Release|Any CPU + {D25B0617-E508-4444-8572-EF21AEE29F69}.Release|x86.Build.0 = Release|Any CPU {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|Any CPU.Build.0 = Debug|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|x64.ActiveCfg = Debug|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|x64.Build.0 = Debug|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|x86.ActiveCfg = Debug|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Debug|x86.Build.0 = Debug|Any CPU {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|Any CPU.ActiveCfg = Release|Any CPU {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|Any CPU.Build.0 = Release|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|x64.ActiveCfg = Release|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|x64.Build.0 = Release|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|x86.ActiveCfg = Release|Any CPU + {14B1D5CD-31AE-44FC-97AF-FC1EC0A88223}.Release|x86.Build.0 = Release|Any CPU {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|x64.ActiveCfg = Debug|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|x64.Build.0 = Debug|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|x86.ActiveCfg = Debug|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Debug|x86.Build.0 = Debug|Any CPU {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|Any CPU.ActiveCfg = Release|Any CPU {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|Any CPU.Build.0 = Release|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|x64.ActiveCfg = Release|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|x64.Build.0 = Release|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|x86.ActiveCfg = Release|Any CPU + {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF}.Release|x86.Build.0 = Release|Any CPU {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|x64.ActiveCfg = Debug|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|x64.Build.0 = Debug|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|x86.ActiveCfg = Debug|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Debug|x86.Build.0 = Debug|Any CPU {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|Any CPU.ActiveCfg = Release|Any CPU {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|Any CPU.Build.0 = Release|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|x64.ActiveCfg = Release|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|x64.Build.0 = Release|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|x86.ActiveCfg = Release|Any CPU + {F5362E75-D986-49F2-A774-7EC6C76046D2}.Release|x86.Build.0 = Release|Any CPU {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|x64.ActiveCfg = Debug|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|x64.Build.0 = Debug|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|x86.ActiveCfg = Debug|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Debug|x86.Build.0 = Debug|Any CPU {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|Any CPU.ActiveCfg = Release|Any CPU {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|Any CPU.Build.0 = Release|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|x64.ActiveCfg = Release|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|x64.Build.0 = Release|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|x86.ActiveCfg = Release|Any CPU + {43D0D91E-6F74-4259-A38A-8CEE881E5E2F}.Release|x86.Build.0 = Release|Any CPU {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|x64.ActiveCfg = Debug|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|x64.Build.0 = Debug|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|x86.ActiveCfg = Debug|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Debug|x86.Build.0 = Debug|Any CPU {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|Any CPU.ActiveCfg = Release|Any CPU {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|Any CPU.Build.0 = Release|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|x64.ActiveCfg = Release|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|x64.Build.0 = Release|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|x86.ActiveCfg = Release|Any CPU + {7C710008-8CE2-478D-A8C8-66395BDAD9B7}.Release|x86.Build.0 = Release|Any CPU {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|x64.ActiveCfg = Debug|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|x64.Build.0 = Debug|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|x86.ActiveCfg = Debug|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Debug|x86.Build.0 = Debug|Any CPU {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|Any CPU.ActiveCfg = Release|Any CPU {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|Any CPU.Build.0 = Release|Any CPU - {EBFC093C-316B-4ABC-ADED-5873B3EC38A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EBFC093C-316B-4ABC-ADED-5873B3EC38A0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EBFC093C-316B-4ABC-ADED-5873B3EC38A0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EBFC093C-316B-4ABC-ADED-5873B3EC38A0}.Release|Any CPU.Build.0 = Release|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|x64.ActiveCfg = Release|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|x64.Build.0 = Release|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|x86.ActiveCfg = Release|Any CPU + {C806845B-B2AF-4A66-A7FB-3A013993B0DC}.Release|x86.Build.0 = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|x64.ActiveCfg = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|x64.Build.0 = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|x86.ActiveCfg = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Debug|x86.Build.0 = Debug|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|Any CPU.Build.0 = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|x64.ActiveCfg = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|x64.Build.0 = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|x86.ActiveCfg = Release|Any CPU + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -92,5 +186,6 @@ Global {C9CA347A-4D6B-43AA-B218-AD307CA0E9EF} = {B87E9415-9C6C-4C79-B5F2-8EFF71B3C153} {F5362E75-D986-49F2-A774-7EC6C76046D2} = {6EE86D76-00A6-456D-808E-B379025DDEF6} {7C710008-8CE2-478D-A8C8-66395BDAD9B7} = {6EE86D76-00A6-456D-808E-B379025DDEF6} + {43BDEDBA-D5D3-4DE6-91E7-63516134C6E5} = {209B7439-C0BE-2770-137C-76A813D98A1F} EndGlobalSection EndGlobal diff --git a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 index 20675ca6d155..50421138e2f9 100644 --- a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 +++ b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-04-10 # @{ @@ -53,22 +53,22 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.PowerShell.AlertsManagement.Management.Sdk.dll', 'PrometheusRuleGroups.Autorest/bin/Az.PrometheusRuleGroups.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 = 'Microsoft.Azure.PowerShell.Cmdlets.AlertsManagement.generated.format.ps1xml', - 'PrometheusRuleGroups.Autorest\Az.PrometheusRuleGroups.format.ps1xml' + 'PrometheusRuleGroups.Autorest/Az.PrometheusRuleGroups.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.AlertsManagement.dll', @@ -109,7 +109,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','Alerts','AlertsManagement','Notifications' + Tags = 'Azure', 'Alerts', 'AlertsManagement', 'Notifications' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -134,7 +134,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/AlertsManagement/AlertsManagement/ChangeLog.md b/src/AlertsManagement/AlertsManagement/ChangeLog.md index c732d78871cf..9bd0544559ae 100644 --- a/src/AlertsManagement/AlertsManagement/ChangeLog.md +++ b/src/AlertsManagement/AlertsManagement/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 0.6.3 * Upgraded nuget package to signed package. diff --git a/src/AlertsManagement/AlertsManagement/help/Az.AlertsManagement.md b/src/AlertsManagement/AlertsManagement/help/Az.AlertsManagement.md index 88a343a16e68..b0be03716c74 100644 --- a/src/AlertsManagement/AlertsManagement/help/Az.AlertsManagement.md +++ b/src/AlertsManagement/AlertsManagement/help/Az.AlertsManagement.md @@ -33,7 +33,7 @@ Gets smart group history Gets Alert Summary Information ### [New-AzPrometheusRuleGroup](New-AzPrometheusRuleGroup.md) -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ### [New-AzPrometheusRuleGroupActionObject](New-AzPrometheusRuleGroupActionObject.md) Create an in-memory object for PrometheusRuleGroupAction. @@ -57,7 +57,7 @@ Updates alert processing rule properties. Updates alert state ### [Update-AzPrometheusRuleGroup](Update-AzPrometheusRuleGroup.md) -Update an Prometheus rule group definition. +update an Prometheus rule group definition. ### [Update-AzSmartGroupState](Update-AzSmartGroupState.md) Updates smart group state diff --git a/src/AlertsManagement/AlertsManagement/help/Get-AzPrometheusRuleGroup.md b/src/AlertsManagement/AlertsManagement/help/Get-AzPrometheusRuleGroup.md index 84fbd7b96c0c..4d4c6c58474c 100644 --- a/src/AlertsManagement/AlertsManagement/help/Get-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/AlertsManagement/help/Get-AzPrometheusRuleGroup.md @@ -88,7 +88,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity @@ -157,7 +156,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroup.md b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroup.md index de3e3096a0ec..4be39bbd9702 100644 --- a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroup.md @@ -8,10 +8,11 @@ schema: 2.0.0 # New-AzPrometheusRuleGroup ## SYNOPSIS -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ## SYNTAX +### CreateExpanded (Default) ``` New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-SubscriptionId <String>] -Location <String> -Rule <IPrometheusRule[]> -Scope <String[]> [-ClusterName <String>] [-Description <String>] @@ -19,8 +20,22 @@ New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [- [-WhatIf] [-Confirm] [<CommonParameters>] ``` +### CreateViaJsonFilePath +``` +New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-SubscriptionId <String>] + -JsonFilePath <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] + [<CommonParameters>] +``` + +### CreateViaJsonString +``` +New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-SubscriptionId <String>] + -JsonString <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] + [<CommonParameters>] +``` + ## DESCRIPTION -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ## EXAMPLES @@ -65,7 +80,7 @@ Apply rule to data from a specific cluster. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -96,7 +111,7 @@ Rule group description. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -111,7 +126,7 @@ Enable/disable rule group. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -127,7 +142,7 @@ Should be between 1 and 15 minutes ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,12 +152,42 @@ 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 geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -170,11 +215,10 @@ Accept wildcard characters: False ### -Rule Defines the rules in the Prometheus rule group. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRule[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -206,7 +250,7 @@ This may change in future. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -236,7 +280,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +328,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroupActionObject.md b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroupActionObject.md index 9318ccf12791..9c4cfc8b49a2 100644 --- a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroupActionObject.md +++ b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleGroupActionObject.md @@ -1,7 +1,7 @@ --- external help file: Az.PrometheusRuleGroups.psm1-help.xml Module Name: Az.AlertsManagement -online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleGroupActionObject +online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusrulegroupactionobject schema: 2.0.0 --- @@ -55,10 +55,9 @@ Accept wildcard characters: False ### -ActionProperty The properties of an action group object. -To construct, see NOTES section for ACTIONPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupActionProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupActionProperties Parameter Sets: (All) Aliases: @@ -76,7 +75,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleGroupAction +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleGroupAction ## NOTES diff --git a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleObject.md b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleObject.md index 5e0c52c73bcb..4b7949aede4e 100644 --- a/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleObject.md +++ b/src/AlertsManagement/AlertsManagement/help/New-AzPrometheusRuleObject.md @@ -1,7 +1,7 @@ --- external help file: Az.PrometheusRuleGroups.psm1-help.xml Module Name: Az.AlertsManagement -online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleObject +online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusruleobject schema: 2.0.0 --- @@ -42,10 +42,9 @@ Create an in-memory object for PrometheusRule. ### -Action Actions that are performed when the alert rule becomes active, and when an alert condition is resolved. -To construct, see NOTES section for ACTION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupAction[] +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupAction[] Parameter Sets: (All) Aliases: @@ -74,10 +73,9 @@ Accept wildcard characters: False ### -Annotation The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated. -To construct, see NOTES section for ANNOTATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleAnnotations +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleAnnotations Parameter Sets: (All) Aliases: @@ -137,10 +135,9 @@ Accept wildcard characters: False ### -Label Labels to add or overwrite before storing the result. -To construct, see NOTES section for LABEL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleLabels +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleLabels Parameter Sets: (All) Aliases: @@ -219,7 +216,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRule +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRule ## NOTES diff --git a/src/AlertsManagement/AlertsManagement/help/Remove-AzPrometheusRuleGroup.md b/src/AlertsManagement/AlertsManagement/help/Remove-AzPrometheusRuleGroup.md index e258d730204d..e2687af9a09e 100644 --- a/src/AlertsManagement/AlertsManagement/help/Remove-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/AlertsManagement/help/Remove-AzPrometheusRuleGroup.md @@ -57,7 +57,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity diff --git a/src/AlertsManagement/AlertsManagement/help/Update-AzPrometheusRuleGroup.md b/src/AlertsManagement/AlertsManagement/help/Update-AzPrometheusRuleGroup.md index 8298cb202334..56f4d2dcb9ff 100644 --- a/src/AlertsManagement/AlertsManagement/help/Update-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/AlertsManagement/help/Update-AzPrometheusRuleGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPrometheusRuleGroup ## SYNOPSIS -Update an Prometheus rule group definition. +update an Prometheus rule group definition. ## SYNTAX @@ -19,6 +19,20 @@ Update-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-Confirm] [<CommonParameters>] ``` +### UpdateViaJsonString +``` +Update-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-SubscriptionId <String>] + -JsonString <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] + [<CommonParameters>] +``` + +### UpdateViaJsonFilePath +``` +Update-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> [-SubscriptionId <String>] + -JsonFilePath <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] + [<CommonParameters>] +``` + ### UpdateViaIdentityExpanded ``` Update-AzPrometheusRuleGroup -InputObject <IPrometheusRuleGroupsIdentity> [-Enabled] [-Tag <Hashtable>] @@ -26,7 +40,7 @@ Update-AzPrometheusRuleGroup -InputObject <IPrometheusRuleGroupsIdentity> [-Enab ``` ## DESCRIPTION -Update an Prometheus rule group definition. +update an Prometheus rule group definition. ## EXAMPLES @@ -66,7 +80,7 @@ the flag that indicates whether the Prometheus rule group is enabled. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -78,7 +92,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity @@ -92,13 +105,43 @@ 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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -113,7 +156,7 @@ The name of the rule group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -128,7 +171,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: False @@ -143,7 +186,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -193,7 +236,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs b/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..49e64da77b4e --- /dev/null +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - PrometheusRuleGroups")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.6.3")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.6.3")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/README.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/README.md index e0b642271177..e125d33a9033 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/README.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/README.md @@ -55,24 +55,13 @@ title: PrometheusRuleGroups root-module-name: $(prefix).AlertsManagement subject-prefix: "" inlining-threshold: 100 -resourcegroup-append: true -nested-object-to-string: 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: - # Remove the unexpanded parameter set - - where: - variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ - remove: true - # Hide CreateViaIdentity for customization - where: - variant: ^CreateViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true - where: - variant: ^Create$ + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$ remove: true - where: subject: PrometheuRuleGroup @@ -82,8 +71,10 @@ directive: verb: Set hide: true - model-cmdlet: - - PrometheusRule - - PrometheusRuleGroupAction + - model-name: PrometheusRule + cmdlet-name: New-AzPrometheusRuleObject + - model-name: PrometheusRuleGroupAction + cmdlet-name: New-AzPrometheusRuleGroupActionObject - where: model-name: PrometheusRuleGroupResource set: @@ -93,5 +84,4 @@ directive: - Location - ClusterName - Enabled - ``` diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleGroupActionObject.ps1 b/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleGroupActionObject.ps1 index e7720908bb93..f6d0b0030756 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleGroupActionObject.ps1 +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleGroupActionObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for PrometheusRuleGroupAction. Create an in-memory object for PrometheusRuleGroupAction. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleGroupAction +Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleGroupAction .Link -https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleGroupActionObject +https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusrulegroupactionobject #> function New-AzPrometheusRuleGroupActionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleGroupAction')] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleGroupAction')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,12 +35,12 @@ function New-AzPrometheusRuleGroupActionObject { [string] $ActionGroupId, [Parameter(HelpMessage="The properties of an action group object.")] - [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupActionProperties] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupActionProperties] $ActionProperty ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleGroupAction]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleGroupAction]::New() if ($PSBoundParameters.ContainsKey('ActionGroupId')) { $Object.ActionGroupId = $ActionGroupId diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleObject.ps1 b/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleObject.ps1 index 115156d33ebd..cf19092f55c9 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleObject.ps1 +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/custom/autogen-model-cmdlets/New-AzPrometheusRuleObject.ps1 @@ -21,23 +21,24 @@ Create an in-memory object for PrometheusRule. Create an in-memory object for PrometheusRule. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRule +Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRule .Link -https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleObject +https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusruleobject #> function New-AzPrometheusRuleObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRule')] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRule')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.")] - [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupAction[]] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupAction[]] $Action, [Parameter(HelpMessage="Alert rule name.")] [string] $Alert, [Parameter(HelpMessage="The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.")] - [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleAnnotations] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleAnnotations] $Annotation, [Parameter(HelpMessage="Enable/disable rule.")] [bool] @@ -49,7 +50,7 @@ function New-AzPrometheusRuleObject { [System.TimeSpan] $For, [Parameter(HelpMessage="Labels to add or overwrite before storing the result.")] - [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleLabels] + [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleLabels] $Label, [Parameter(HelpMessage="Recorded metrics name.")] [string] @@ -66,7 +67,7 @@ function New-AzPrometheusRuleObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRule]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRule]::New() if ($PSBoundParameters.ContainsKey('Action')) { $Object.Action = $Action diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md index 47612212e4ce..4a46be678b34 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md @@ -1,6 +1,6 @@ --- Module Name: Az.PrometheusRuleGroups -Module Guid: dbc2402c-0892-4d72-9279-ab2398e7e02e +Module Guid: 6ab881a6-6f81-4bd0-acc0-48ac742741b3 Download Help Link: https://learn.microsoft.com/powershell/module/az.prometheusrulegroups Help Version: 1.0.0.0 Locale: en-US @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: PrometheusRuleGroups cmdlets Retrieve a Prometheus rule group definition. ### [New-AzPrometheusRuleGroup](New-AzPrometheusRuleGroup.md) -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ### [New-AzPrometheusRuleGroupActionObject](New-AzPrometheusRuleGroupActionObject.md) Create an in-memory object for PrometheusRuleGroupAction. @@ -27,5 +27,5 @@ Create an in-memory object for PrometheusRule. Delete a Prometheus rule group definition. ### [Update-AzPrometheusRuleGroup](Update-AzPrometheusRuleGroup.md) -Update an Prometheus rule group definition. +update an Prometheus rule group definition. diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md index 41f8acd0bc6e..584b8ffbde44 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md @@ -87,7 +87,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity @@ -156,7 +155,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md index 2b8a86f0bd7f..917de84868e5 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md @@ -8,10 +8,11 @@ schema: 2.0.0 # New-AzPrometheusRuleGroup ## SYNOPSIS -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ## SYNTAX +### CreateExpanded (Default) ``` New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -Location <String> -Rule <IPrometheusRule[]> -Scope <String[]> [-SubscriptionId <String>] [-ClusterName <String>] @@ -19,8 +20,20 @@ New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -L [-Confirm] [-WhatIf] [<CommonParameters>] ``` +### CreateViaJsonFilePath +``` +New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -JsonFilePath <String> + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>] +``` + +### CreateViaJsonString +``` +New-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -JsonString <String> + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>] +``` + ## DESCRIPTION -Create or update a Prometheus rule group definition. +create a Prometheus rule group definition. ## EXAMPLES @@ -65,7 +78,7 @@ Apply rule to data from a specific cluster. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -96,7 +109,7 @@ Rule group description. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -111,7 +124,7 @@ Enable/disable rule group. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -127,7 +140,7 @@ Should be between 1 and 15 minutes ```yaml Type: System.TimeSpan -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -137,12 +150,42 @@ 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 geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -170,11 +213,10 @@ Accept wildcard characters: False ### -Rule Defines the rules in the Prometheus rule group. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRule[] +Parameter Sets: CreateExpanded Aliases: Required: True @@ -206,7 +248,7 @@ This may change in future. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -236,7 +278,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +326,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md index 7bd8c6bdf9e8..0c61e92927ff 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.AlertsManagement -online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleGroupActionObject +online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusrulegroupactionobject schema: 2.0.0 --- @@ -55,10 +55,9 @@ Accept wildcard characters: False ### -ActionProperty The properties of an action group object. -To construct, see NOTES section for ACTIONPROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupActionProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupActionProperties Parameter Sets: (All) Aliases: @@ -76,7 +75,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleGroupAction +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleGroupAction ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md index 0955bd6f05a7..dbc6f7916be3 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.AlertsManagement -online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-AzPrometheusRuleObject +online version: https://learn.microsoft.com/powershell/module/Az.AlertsManagement/new-azprometheusruleobject schema: 2.0.0 --- @@ -41,10 +41,9 @@ Create an in-memory object for PrometheusRule. ### -Action Actions that are performed when the alert rule becomes active, and when an alert condition is resolved. -To construct, see NOTES section for ACTION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupAction[] +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupAction[] Parameter Sets: (All) Aliases: @@ -73,10 +72,9 @@ Accept wildcard characters: False ### -Annotation The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated. -To construct, see NOTES section for ANNOTATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleAnnotations +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleAnnotations Parameter Sets: (All) Aliases: @@ -136,10 +134,9 @@ Accept wildcard characters: False ### -Label Labels to add or overwrite before storing the result. -To construct, see NOTES section for LABEL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleLabels +Type: Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleLabels Parameter Sets: (All) Aliases: @@ -218,7 +215,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRule +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRule ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md index 3b070eda6d67..106ea0bdddba 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md @@ -56,7 +56,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md index e89eb07d6c0c..84c7217a170d 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPrometheusRuleGroup ## SYNOPSIS -Update an Prometheus rule group definition. +update an Prometheus rule group definition. ## SYNTAX @@ -24,8 +24,20 @@ Update-AzPrometheusRuleGroup -InputObject <IPrometheusRuleGroupsIdentity> [-Enab [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>] ``` +### UpdateViaJsonFilePath +``` +Update-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -JsonFilePath <String> + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>] +``` + +### UpdateViaJsonString +``` +Update-AzPrometheusRuleGroup -ResourceGroupName <String> -RuleGroupName <String> -JsonString <String> + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>] +``` + ## DESCRIPTION -Update an Prometheus rule group definition. +update an Prometheus rule group definition. ## EXAMPLES @@ -65,7 +77,7 @@ the flag that indicates whether the Prometheus rule group is enabled. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -77,7 +89,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.PrometheusRuleGroups.Models.IPrometheusRuleGroupsIdentity @@ -91,13 +102,43 @@ 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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -112,7 +153,7 @@ The name of the rule group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -127,7 +168,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -142,7 +183,7 @@ Resource tags ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -192,7 +233,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleGroupResource +### Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.IPrometheusRuleGroupResource ## NOTES diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/generate-info.json b/src/AlertsManagement/PrometheusRuleGroups.Autorest/generate-info.json index bde388a20fd9..9344a8a89948 100644 --- a/src/AlertsManagement/PrometheusRuleGroups.Autorest/generate-info.json +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "a5f4a37e-1f35-429f-ba00-afb9674a2294" + "generate_Id": "1eeac627-c9bb-45e9-915f-079f34b3e84c" } diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/resources/README.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/AlertsManagement/PrometheusRuleGroups.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file