diff --git a/src/Workloads/Monitors.Autorest/Properties/AssemblyInfo.cs b/src/Workloads/Monitors.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..2e1f7e8692f8 --- /dev/null +++ b/src/Workloads/Monitors.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 - Monitors")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/Workloads/Monitors.Autorest/README.md b/src/Workloads/Monitors.Autorest/README.md index c12427f06a29..705e66a5f4f4 100644 --- a/src/Workloads/Monitors.Autorest/README.md +++ b/src/Workloads/Monitors.Autorest/README.md @@ -51,10 +51,6 @@ nested-object-to-string: true #add-api-version-in-model-namespace: true inlining-threshold: 100 -# 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: # Monitor - where: @@ -145,8 +141,10 @@ directive: - SAPConfiguration - ErrorInnerError - model-cmdlet: - - SapLandscapeMonitorSidMapping - - SapLandscapeMonitorMetricThresholds + - model-name: SapLandscapeMonitorSidMapping + cmdlet-name: New-AzWorkloadsSapLandscapeMonitorSidMappingObject + - model-name: SapLandscapeMonitorMetricThresholds + cmdlet-name: New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject # remove System Data in module Monitor, ProviderInstance, SapApplicationServerInstance, SapCentralServerInstance, SapDatabaseInstance, SapLandscapeMonitor, SapVirtualInstance - from: Monitor.cs diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderDB2InstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderDB2InstanceObject.ps1 index d98fbdab183a..684563340342 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderDB2InstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderDB2InstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for DB2ProviderInstanceProperties. Create an in-memory object for DB2ProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.DB2ProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.DB2ProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsproviderdb2instanceobject #> function New-AzWorkloadsProviderDB2InstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.DB2ProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.DB2ProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -55,13 +55,13 @@ function New-AzWorkloadsProviderDB2InstanceObject { [string] $SslCertificateUri, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.DB2ProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.DB2ProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('Name')) { $Object.DbName = $Name diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderHanaDbInstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderHanaDbInstanceObject.ps1 index 8c1b19562f29..e83c4b2dff37 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderHanaDbInstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderHanaDbInstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for HanaDbProviderInstanceProperties. Create an in-memory object for HanaDbProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.HanaDbProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.HanaDbProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsproviderhanadbinstanceobject #> function New-AzWorkloadsProviderHanaDbInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.HanaDbProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.HanaDbProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -61,13 +61,13 @@ function New-AzWorkloadsProviderHanaDbInstanceObject { [string] $SslHostNameInCertificate, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.HanaDbProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.HanaDbProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('Name')) { $Object.DbName = $Name diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1 index 7bd38f55b141..03a74847159d 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for PrometheusHaClusterProviderInstanceProperties. Create an in-memory object for PrometheusHaClusterProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusHaClusterProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsproviderprometheushaclusterinstanceobject #> function New-AzWorkloadsProviderPrometheusHaClusterInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusHaClusterProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -46,13 +46,13 @@ function New-AzWorkloadsProviderPrometheusHaClusterInstanceObject { [string] $SslCertificateUri, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusHaClusterProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('ClusterName')) { $Object.ClusterName = $ClusterName diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1 index 1ed59c153da8..f09ee568cc6d 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for PrometheusOSProviderInstanceProperties. Create an in-memory object for PrometheusOSProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusOSProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusOSProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsproviderprometheusosinstanceobject #> function New-AzWorkloadsProviderPrometheusOSInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusOSProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusOSProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -40,13 +40,13 @@ function New-AzWorkloadsProviderPrometheusOSInstanceObject { [string] $SslCertificateUri, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusOSProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusOSProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('PrometheusUrl')) { $Object.PrometheusUrl = $PrometheusUrl diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1 index f2a1e2c29496..b6ffb77eb379 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for SapNetWeaverProviderInstanceProperties. Create an in-memory object for SapNetWeaverProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapNetWeaverProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapNetWeaverProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsprovidersapnetweaverinstanceobject #> function New-AzWorkloadsProviderSapNetWeaverInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapNetWeaverProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapNetWeaverProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -61,13 +61,13 @@ function New-AzWorkloadsProviderSapNetWeaverInstanceObject { [string] $SslCertificateUri, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapNetWeaverProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapNetWeaverProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('SapClientId')) { $Object.SapClientId = $SapClientId diff --git a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSqlServerInstanceObject.ps1 b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSqlServerInstanceObject.ps1 index 28bb17ed35c6..c8485ad34bba 100644 --- a/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSqlServerInstanceObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/New-AzWorkloadsProviderSqlServerInstanceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for MsSqlServerProviderInstanceProperties. Create an in-memory object for MsSqlServerProviderInstanceProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.MsSqlServerProviderInstanceProperties +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.MsSqlServerProviderInstanceProperties .Link https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadsprovidersqlserverinstanceobject #> function New-AzWorkloadsProviderSqlServerInstanceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.MsSqlServerProviderInstanceProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.MsSqlServerProviderInstanceProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -52,13 +52,13 @@ function New-AzWorkloadsProviderSqlServerInstanceObject { [string] $SslCertificateUri, [Parameter(HelpMessage="Gets or sets certificate preference if secure communication is enabled.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference])] - [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.PSArgumentCompleterAttribute("Disabled", "RootCertificate", "ServerCertificate")] + [string] $SslPreference ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.MsSqlServerProviderInstanceProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.MsSqlServerProviderInstanceProperties]::New() if ($PSBoundParameters.ContainsKey('Password')) { $Object.DbPassword = $Password diff --git a/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1 b/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1 index 49d4f90a581b..0fde2c83f0f4 100644 --- a/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for SapLandscapeMonitorMetricThresholds. Create an in-memory object for SapLandscapeMonitorMetricThresholds. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorMetricThresholds +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorMetricThresholds .Link -https://learn.microsoft.com/powershell/module/Az.Workloads/new-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject +https://learn.microsoft.com/powershell/module/Az.Workloads/new-azworkloadssaplandscapemonitormetricthresholdsobject #> function New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorMetricThresholds')] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorMetricThresholds')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -45,7 +46,7 @@ function New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorMetricThresholds]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorMetricThresholds]::New() if ($PSBoundParameters.ContainsKey('Green')) { $Object.Green = $Green diff --git a/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1 b/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1 index a4b0573b204e..0e372c3dbc25 100644 --- a/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1 +++ b/src/Workloads/Monitors.Autorest/custom/autogen-model-cmdlets/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for SapLandscapeMonitorSidMapping. Create an in-memory object for SapLandscapeMonitorSidMapping. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorSidMapping +Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorSidMapping .Link -https://learn.microsoft.com/powershell/module/Az.Workloads/new-AzWorkloadsSapLandscapeMonitorSidMappingObject +https://learn.microsoft.com/powershell/module/Az.Workloads/new-azworkloadssaplandscapemonitorsidmappingobject #> function New-AzWorkloadsSapLandscapeMonitorSidMappingObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorSidMapping')] + [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorSidMapping')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -39,7 +40,7 @@ function New-AzWorkloadsSapLandscapeMonitorSidMappingObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorSidMapping]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorSidMapping]::New() if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name diff --git a/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md b/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md index 72470fda0560..fd307484a698 100644 --- a/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md +++ b/src/Workloads/Monitors.Autorest/docs/Az.Monitors.md @@ -1,6 +1,6 @@ --- Module Name: Az.Monitors -Module Guid: 382ba7a1-610b-4194-9aaa-e1142a4399d5 +Module Guid: 00297d1e-68e1-466c-8529-d51533cbaa8d Download Help Link: https://learn.microsoft.com/powershell/module/az.monitors Help Version: 1.0.0.0 Locale: en-US @@ -21,7 +21,7 @@ Gets properties of a provider instance for the specified subscription, resource Gets configuration values for Single Pane Of Glass for SAP monitor for the specified subscription, resource group, and resource name. ### [New-AzWorkloadsMonitor](New-AzWorkloadsMonitor.md) -Creates a SAP monitor for the specified subscription, resource group, and resource name. +create a SAP monitor for the specified subscription, resource group, and resource name. ### [New-AzWorkloadsProviderDB2InstanceObject](New-AzWorkloadsProviderDB2InstanceObject.md) Create an in-memory object for DB2ProviderInstanceProperties. @@ -30,7 +30,7 @@ Create an in-memory object for DB2ProviderInstanceProperties. Create an in-memory object for HanaDbProviderInstanceProperties. ### [New-AzWorkloadsProviderInstance](New-AzWorkloadsProviderInstance.md) -Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. +create a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. ### [New-AzWorkloadsProviderPrometheusHaClusterInstanceObject](New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.md) Create an in-memory object for PrometheusHaClusterProviderInstanceProperties. @@ -45,7 +45,7 @@ Create an in-memory object for SapNetWeaverProviderInstanceProperties. Create an in-memory object for MsSqlServerProviderInstanceProperties. ### [New-AzWorkloadsSapLandscapeMonitor](New-AzWorkloadsSapLandscapeMonitor.md) -Creates a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. +create a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. ### [New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject](New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.md) Create an in-memory object for SapLandscapeMonitorMetricThresholds. @@ -63,7 +63,10 @@ Deletes a provider instance for the specified subscription, resource group, SAP Deletes a SAP Landscape Monitor Dashboard with the specified subscription, resource group, and SAP monitor name. ### [Update-AzWorkloadsMonitor](Update-AzWorkloadsMonitor.md) -Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. +update a SAP monitor for the specified subscription, resource group, and resource name. + +### [Update-AzWorkloadsProviderInstance](Update-AzWorkloadsProviderInstance.md) +update a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. ### [Update-AzWorkloadsSapLandscapeMonitor](Update-AzWorkloadsSapLandscapeMonitor.md) Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name. diff --git a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsMonitor.md b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsMonitor.md index 9499fd79447f..27784dc99064 100644 --- a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsMonitor.md @@ -118,7 +118,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -187,7 +186,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsProviderInstance.md index 7e04563430bf..1a9d314aec4c 100644 --- a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsProviderInstance.md +++ b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsProviderInstance.md @@ -30,6 +30,12 @@ Get-AzWorkloadsProviderInstance -InputObject [-DefaultProfil [] ``` +### GetViaIdentityMonitor +``` +Get-AzWorkloadsProviderInstance -MonitorInputObject -Name + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. @@ -103,7 +109,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -117,6 +122,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -MonitorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity +Parameter Sets: GetViaIdentityMonitor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MonitorName Name of the SAP monitor resource. @@ -137,7 +157,7 @@ Name of the provider instance. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityMonitor Aliases: ProviderInstanceName Required: True @@ -187,7 +207,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IProviderInstance +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsSapLandscapeMonitor.md b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsSapLandscapeMonitor.md index 7a98cbc36cfd..fbc5d4a326bf 100644 --- a/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsSapLandscapeMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Get-AzWorkloadsSapLandscapeMonitor.md @@ -119,7 +119,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -188,7 +187,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md index 12cd1e5d7f43..69252bc93e65 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md @@ -8,21 +8,36 @@ schema: 2.0.0 # New-AzWorkloadsMonitor ## SYNOPSIS -Creates a SAP monitor for the specified subscription, resource group, and resource name. +create a SAP monitor for the specified subscription, resource group, and resource name. ## SYNTAX +### CreateExpanded (Default) ``` New-AzWorkloadsMonitor -Name -ResourceGroupName -Location - [-SubscriptionId ] [-AppLocation ] [-IdentityType ] + [-SubscriptionId ] [-AppLocation ] [-EnableSystemAssignedIdentity] [-LogAnalyticsWorkspaceArmId ] [-ManagedResourceGroupName ] [-MonitorSubnet ] - [-RoutingPreference ] [-Tag ] [-UserAssignedIdentity ] + [-RoutingPreference ] [-Tag ] [-UserAssignedIdentity ] [-ZoneRedundancyPreference ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzWorkloadsMonitor -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzWorkloadsMonitor -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION -Creates a SAP monitor for the specified subscription, resource group, and resource name. +create a SAP monitor for the specified subscription, resource group, and resource name. ## EXAMPLES @@ -47,7 +62,7 @@ The subnet region should be same as the SAP monitoring region. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -88,12 +103,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityType -Type of manage identity +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.ManagedServiceIdentityType -Parameter Sets: (All) +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded Aliases: Required: False @@ -103,12 +118,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 @@ -123,7 +168,7 @@ The ARM ID of the Log Analytics Workspace that is used for SAP monitoring. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -138,7 +183,7 @@ Managed resource group name ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -153,7 +198,7 @@ The subnet which the SAP monitor will be deployed in ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -214,8 +259,8 @@ Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.RoutingPreference -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -245,7 +290,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -256,11 +301,12 @@ Accept wildcard characters: False ``` ### -UserAssignedIdentity -User assigned identities dictionary +The array of user assigned identities associated with the resource. +The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.' ```yaml -Type: System.Collections.Hashtable -Parameter Sets: (All) +Type: System.String[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -276,7 +322,7 @@ By default resources will be created which do not support zone redundancy. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -324,7 +370,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderDB2InstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderDB2InstanceObject.md index 67f009dc6d01..fcd70cc6fc1c 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderDB2InstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderDB2InstanceObject.md @@ -15,7 +15,7 @@ Create an in-memory object for DB2ProviderInstanceProperties. ``` New-AzWorkloadsProviderDB2InstanceObject [-Hostname ] [-Name ] [-Password ] [-PasswordUri ] [-Port ] [-SapSid ] [-SslCertificateUri ] - [-SslPreference ] [-Username ] [] + [-SslPreference ] [-Username ] [] ``` ## DESCRIPTION @@ -147,7 +147,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -180,7 +180,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.Db2ProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Db2ProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderHanaDbInstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderHanaDbInstanceObject.md index 708db25314f5..b8b961dd8fe2 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderHanaDbInstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderHanaDbInstanceObject.md @@ -15,7 +15,7 @@ Create an in-memory object for HanaDbProviderInstanceProperties. ``` New-AzWorkloadsProviderHanaDbInstanceObject [-Hostname ] [-InstanceNumber ] [-Name ] [-Password ] [-PasswordUri ] [-SapSid ] [-SqlPort ] - [-SslCertificateUri ] [-SslHostNameInCertificate ] [-SslPreference ] + [-SslCertificateUri ] [-SslHostNameInCertificate ] [-SslPreference ] [-Username ] [] ``` @@ -179,7 +179,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -212,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.HanaDbProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.HanaDbProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md index 6c98819fab2a..b4915401e18b 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md @@ -8,19 +8,49 @@ schema: 2.0.0 # New-AzWorkloadsProviderInstance ## SYNOPSIS -Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. +create a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. ## SYNTAX +### CreateExpanded (Default) ``` New-AzWorkloadsProviderInstance -MonitorName -Name -ResourceGroupName - [-SubscriptionId ] [-IdentityType ] - [-IdentityUserAssignedIdentity ] [-ProviderSetting ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-EnableSystemAssignedIdentity] [-ProviderSetting ] + [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaIdentityMonitor +``` +New-AzWorkloadsProviderInstance -MonitorInputObject -Name + -ProviderInstanceParameter [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaIdentityMonitorExpanded +``` +New-AzWorkloadsProviderInstance -MonitorInputObject -Name + [-EnableSystemAssignedIdentity] [-ProviderSetting ] + [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzWorkloadsProviderInstance -MonitorName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzWorkloadsProviderInstance -MonitorName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION -Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. +create a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. ## EXAMPLES @@ -86,12 +116,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityType -Type of manage identity +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.ManagedServiceIdentityType -Parameter Sets: (All) +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded Aliases: Required: False @@ -101,27 +131,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityUserAssignedIdentity -User assigned identities dictionary +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: System.Collections.Hashtable -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateViaJsonFilePath Aliases: -Required: False +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 +``` + +### -MonitorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity +Parameter Sets: CreateViaIdentityMonitor, CreateViaIdentityMonitorExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MonitorName Name of the SAP monitor resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -161,13 +221,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProviderInstanceParameter +A provider instance associated with SAP monitor. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance +Parameter Sets: CreateViaIdentityMonitor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ProviderSetting Defines the provider specific properties. -To construct, see NOTES section for PROVIDERSETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IProviderSpecificProperties -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderSpecificProperties +Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded Aliases: Required: False @@ -183,7 +257,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -198,7 +272,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -208,6 +282,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UserAssignedIdentity +The array of user assigned identities associated with the resource. +The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.' + +```yaml +Type: System.String[] +Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -244,9 +334,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IProviderInstance +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.md index ecdbf0391d25..79fadeff4a65 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.md @@ -14,7 +14,7 @@ Create an in-memory object for PrometheusHaClusterProviderInstanceProperties. ``` New-AzWorkloadsProviderPrometheusHaClusterInstanceObject [-ClusterName ] [-Hostname ] - [-PrometheusUrl ] [-Sid ] [-SslCertificateUri ] [-SslPreference ] + [-PrometheusUrl ] [-Sid ] [-SslCertificateUri ] [-SslPreference ] [] ``` @@ -117,7 +117,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -135,7 +135,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusHaClusterProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusOSInstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusOSInstanceObject.md index 86b8dc877fe3..f0107e98a53c 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusOSInstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderPrometheusOSInstanceObject.md @@ -14,7 +14,7 @@ Create an in-memory object for PrometheusOSProviderInstanceProperties. ``` New-AzWorkloadsProviderPrometheusOSInstanceObject [-PrometheusUrl ] [-SapSid ] - [-SslCertificateUri ] [-SslPreference ] [] + [-SslCertificateUri ] [-SslPreference ] [] ``` ## DESCRIPTION @@ -86,7 +86,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -104,7 +104,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.PrometheusOSProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.PrometheusOSProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSapNetWeaverInstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSapNetWeaverInstanceObject.md index 76f6ad0a900e..194295e552a4 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSapNetWeaverInstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSapNetWeaverInstanceObject.md @@ -16,7 +16,7 @@ Create an in-memory object for SapNetWeaverProviderInstanceProperties. New-AzWorkloadsProviderSapNetWeaverInstanceObject [-SapClientId ] [-SapHostFileEntry ] [-SapHostname ] [-SapInstanceNr ] [-SapPassword ] [-SapPasswordUri ] [-SapPortNumber ] [-SapSid ] [-SapUsername ] [-SslCertificateUri ] - [-SslPreference ] [] + [-SslPreference ] [] ``` ## DESCRIPTION @@ -193,7 +193,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -211,7 +211,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapNetWeaverProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapNetWeaverProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSqlServerInstanceObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSqlServerInstanceObject.md index ada0ee688432..531e1b224bd3 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSqlServerInstanceObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderSqlServerInstanceObject.md @@ -15,7 +15,7 @@ Create an in-memory object for MsSqlServerProviderInstanceProperties. ``` New-AzWorkloadsProviderSqlServerInstanceObject [-Hostname ] [-Password ] [-PasswordUri ] [-Port ] [-SapSid ] [-SslCertificateUri ] - [-SslPreference ] [-Username ] [] + [-SslPreference ] [-Username ] [] ``` ## DESCRIPTION @@ -132,7 +132,7 @@ Accept wildcard characters: False Gets or sets certificate preference if secure communication is enabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.SslPreference +Type: System.String Parameter Sets: (All) Aliases: @@ -165,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.MSSqlServerProviderInstanceProperties +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.MSSqlServerProviderInstanceProperties ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md index 0fd3c2ffeb98..d09fdebd37b5 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md @@ -8,10 +8,11 @@ schema: 2.0.0 # New-AzWorkloadsSapLandscapeMonitor ## SYNOPSIS -Creates a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. +create a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. ## SYNTAX +### CreateExpanded (Default) ``` New-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName [-SubscriptionId ] [-GroupingLandscape ] @@ -20,8 +21,20 @@ New-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName ] ``` +### CreateViaJsonFilePath +``` +New-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. +create a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. ## EXAMPLES @@ -89,11 +102,10 @@ Accept wildcard characters: False ### -GroupingLandscape Gets or sets the list of landscape to SID mappings. -To construct, see NOTES section for GROUPINGLANDSCAPE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorSidMapping[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -105,11 +117,10 @@ Accept wildcard characters: False ### -GroupingSapApplication Gets or sets the list of Sap Applications to SID mappings. -To construct, see NOTES section for GROUPINGSAPAPPLICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorSidMapping[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -119,6 +130,36 @@ 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 +``` + ### -MonitorName Name of the SAP monitor resource. @@ -167,11 +208,10 @@ Accept wildcard characters: False ### -TopMetricsThreshold Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard -To construct, see NOTES section for TOPMETRICSTHRESHOLD properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorMetricThresholds[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorMetricThresholds[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -219,7 +259,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.md index ec951871f0c9..36e3ffd18e17 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Workloads -online version: https://learn.microsoft.com/powershell/module/Az.Workloads/new-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject +online version: https://learn.microsoft.com/powershell/module/Az.Workloads/new-azworkloadssaplandscapemonitormetricthresholdsobject schema: 2.0.0 --- @@ -105,7 +105,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorMetricThresholds +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorMetricThresholds ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.md b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.md index fd2735783e88..41ac8eec6336 100644 --- a/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.md +++ b/src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Workloads -online version: https://learn.microsoft.com/powershell/module/Az.Workloads/new-AzWorkloadsSapLandscapeMonitorSidMappingObject +online version: https://learn.microsoft.com/powershell/module/Az.Workloads/new-azworkloadssaplandscapemonitorsidmappingobject schema: 2.0.0 --- @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.SapLandscapeMonitorSidMapping +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.SapLandscapeMonitorSidMapping ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsMonitor.md b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsMonitor.md index 1351a942e9af..4bf5095d4348 100644 --- a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsMonitor.md @@ -94,7 +94,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -224,7 +223,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api30.IOperationStatusResult +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IOperationStatusResult ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsProviderInstance.md index 10b4cce56399..fc6e8ccac994 100644 --- a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsProviderInstance.md +++ b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsProviderInstance.md @@ -25,6 +25,12 @@ Remove-AzWorkloadsProviderInstance -InputObject [-DefaultPro [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityMonitor +``` +Remove-AzWorkloadsProviderInstance -MonitorInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. @@ -91,7 +97,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -105,6 +110,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -MonitorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity +Parameter Sets: DeleteViaIdentityMonitor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MonitorName Name of the SAP monitor resource. @@ -125,7 +145,7 @@ Name of the provider instance. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityMonitor Aliases: ProviderInstanceName Required: True @@ -236,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api30.IOperationStatusResult +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IOperationStatusResult ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsSapLandscapeMonitor.md b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsSapLandscapeMonitor.md index 4ee9c5da1ffd..d7f846d7cafd 100644 --- a/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsSapLandscapeMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Remove-AzWorkloadsSapLandscapeMonitor.md @@ -63,7 +63,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.Workloads.Monitors.Models.IMonitorsIdentity diff --git a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md index 435219b8ba27..89e355bfd707 100644 --- a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsMonitor.md @@ -8,26 +8,30 @@ schema: 2.0.0 # Update-AzWorkloadsMonitor ## SYNOPSIS -Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. +update a SAP monitor for the specified subscription, resource group, and resource name. ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzWorkloadsMonitor -Name -ResourceGroupName [-SubscriptionId ] - [-IdentityType ] [-Tag ] [-UserAssignedIdentity ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-AppLocation ] [-EnableSystemAssignedIdentity ] [-LogAnalyticsWorkspaceArmId ] + [-ManagedResourceGroupName ] [-MonitorSubnet ] [-RoutingPreference ] + [-Tag ] [-UserAssignedIdentity ] [-ZoneRedundancyPreference ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzWorkloadsMonitor -InputObject [-IdentityType ] - [-Tag ] [-UserAssignedIdentity ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Update-AzWorkloadsMonitor -InputObject [-AppLocation ] + [-EnableSystemAssignedIdentity ] [-LogAnalyticsWorkspaceArmId ] + [-ManagedResourceGroupName ] [-MonitorSubnet ] [-RoutingPreference ] + [-Tag ] [-UserAssignedIdentity ] [-ZoneRedundancyPreference ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. +update a SAP monitor for the specified subscription, resource group, and resource name. ## EXAMPLES @@ -60,6 +64,37 @@ Update AMS Monitor Instance by Arm Id ## PARAMETERS +### -AppLocation +The SAP monitor resources will be deployed in the SAP monitoring region. +The subnet region should be same as the SAP monitoring region. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -76,11 +111,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityType -Type of manage identity +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Support.ManagedServiceIdentityType +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: @@ -93,7 +128,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -107,6 +141,51 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -LogAnalyticsWorkspaceArmId +The ARM ID of the Log Analytics Workspace that is used for SAP monitoring. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedResourceGroupName +Managed resource group name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MonitorSubnet +The subnet which the SAP monitor will be deployed in + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the SAP monitor resource. @@ -122,6 +201,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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. @@ -138,6 +232,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RoutingPreference +Sets the routing preference of the SAP monitor. +By default only RFC1918 traffic is routed to the customer VNET. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -154,7 +264,7 @@ Accept wildcard characters: False ``` ### -Tag -Gets or sets the Resource tags. +Resource tags. ```yaml Type: System.Collections.Hashtable @@ -169,10 +279,27 @@ Accept wildcard characters: False ``` ### -UserAssignedIdentity -User assigned identities dictionary +The array of user assigned identities associated with the resource. +The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.' ```yaml -Type: System.Collections.Hashtable +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ZoneRedundancyPreference +Sets the preference for zone redundancy on resources created for the SAP monitor. +By default resources will be created which do not support zone redundancy. + +```yaml +Type: System.String Parameter Sets: (All) Aliases: @@ -223,7 +350,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.IMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md new file mode 100644 index 000000000000..668fa3ffe691 --- /dev/null +++ b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsProviderInstance.md @@ -0,0 +1,333 @@ +--- +external help file: +Module Name: Az.Workloads +online version: https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadsproviderinstance +schema: 2.0.0 +--- + +# Update-AzWorkloadsProviderInstance + +## SYNOPSIS +update a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzWorkloadsProviderInstance -MonitorName -Name -ResourceGroupName + [-SubscriptionId ] [-EnableSystemAssignedIdentity ] + [-ProviderSetting ] [-UserAssignedIdentity ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### Update +``` +Update-AzWorkloadsProviderInstance -MonitorName -Name -ResourceGroupName + -ProviderInstanceParameter [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentity +``` +Update-AzWorkloadsProviderInstance -InputObject + -ProviderInstanceParameter [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzWorkloadsProviderInstance -InputObject [-EnableSystemAssignedIdentity ] + [-ProviderSetting ] [-UserAssignedIdentity ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityMonitor +``` +Update-AzWorkloadsProviderInstance -MonitorInputObject -Name + -ProviderInstanceParameter [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityMonitorExpanded +``` +Update-AzWorkloadsProviderInstance -MonitorInputObject -Name + [-EnableSystemAssignedIdentity ] [-ProviderSetting ] + [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +update a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +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 +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. + +```yaml +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityMonitorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity +Parameter Sets: UpdateViaIdentity, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -MonitorInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity +Parameter Sets: UpdateViaIdentityMonitor, UpdateViaIdentityMonitorExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -MonitorName +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the provider instance. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded, UpdateViaIdentityMonitor, UpdateViaIdentityMonitorExpanded +Aliases: ProviderInstanceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProviderInstanceParameter +A provider instance associated with SAP monitor. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance +Parameter Sets: Update, UpdateViaIdentity, UpdateViaIdentityMonitor +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProviderSetting +Defines the provider specific properties. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderSpecificProperties +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityMonitorExpanded +Aliases: + +Required: False +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: Update, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserAssignedIdentity +The array of user assigned identities associated with the resource. +The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.' + +```yaml +Type: System.String[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityMonitorExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderInstance + +## NOTES + +## RELATED LINKS + diff --git a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsSapLandscapeMonitor.md b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsSapLandscapeMonitor.md index ab215fd85bbe..a65d13c02ccd 100644 --- a/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsSapLandscapeMonitor.md +++ b/src/Workloads/Monitors.Autorest/docs/Update-AzWorkloadsSapLandscapeMonitor.md @@ -30,6 +30,18 @@ Update-AzWorkloadsSapLandscapeMonitor -InputObject [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzWorkloadsSapLandscapeMonitor -MonitorName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name. @@ -99,11 +111,10 @@ Accept wildcard characters: False ### -GroupingLandscape Gets or sets the list of landscape to SID mappings. -To construct, see NOTES section for GROUPINGLANDSCAPE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorSidMapping[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -115,11 +126,10 @@ Accept wildcard characters: False ### -GroupingSapApplication Gets or sets the list of Sap Applications to SID mappings. -To construct, see NOTES section for GROUPINGSAPAPPLICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorSidMapping[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -131,7 +141,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.Workloads.Monitors.Models.IMonitorsIdentity @@ -145,12 +154,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 +``` + ### -MonitorName Name of the SAP monitor resource. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -166,7 +205,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -181,7 +220,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -193,11 +232,10 @@ Accept wildcard characters: False ### -TopMetricsThreshold Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard -To construct, see NOTES section for TOPMETRICSTHRESHOLD properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitorMetricThresholds[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorMetricThresholds[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -247,7 +285,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.Api20230401.ISapLandscapeMonitor +### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitor ## NOTES diff --git a/src/Workloads/Monitors.Autorest/examples/Update-AzWorkloadsProviderInstance.md b/src/Workloads/Monitors.Autorest/examples/Update-AzWorkloadsProviderInstance.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Workloads/Monitors.Autorest/examples/Update-AzWorkloadsProviderInstance.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Workloads/Monitors.Autorest/generate-info.json b/src/Workloads/Monitors.Autorest/generate-info.json index 92447be8d6cc..d4cbf5dc4344 100644 --- a/src/Workloads/Monitors.Autorest/generate-info.json +++ b/src/Workloads/Monitors.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "9d23f448-c71b-4310-810c-9dafc2db4b0c" + "generate_Id": "9f8d4b06-f804-4d90-be80-5a43e643602a" } diff --git a/src/Workloads/Monitors.Autorest/resources/README.md b/src/Workloads/Monitors.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/Workloads/Monitors.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 diff --git a/src/Workloads/Monitors.Autorest/test/Update-AzWorkloadsProviderInstance.Tests.ps1 b/src/Workloads/Monitors.Autorest/test/Update-AzWorkloadsProviderInstance.Tests.ps1 new file mode 100644 index 000000000000..8b7a0b0952d1 --- /dev/null +++ b/src/Workloads/Monitors.Autorest/test/Update-AzWorkloadsProviderInstance.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzWorkloadsProviderInstance')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzWorkloadsProviderInstance.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzWorkloadsProviderInstance' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityMonitorExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityMonitor' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +}