Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 - MonitoringSolutions")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ subject-prefix: MonitorLogAnalytics

inlining-threshold: 40

# 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:
# Fix error in swagger: PUT, PATCH, DELETE of solutions are not long running
- from: swagger-document
Expand All @@ -67,7 +63,10 @@ directive:
transform: return $.replace(/"x-ms-long-running-operation":\ true/g, "\"x-ms-long-running-operation\":\ false")
# Remove the unexpanded parameter set
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?Expanded)
remove: true
- where:
variant: ^CreateViaIdentityExpanded$
remove: true
# Remove the set-* cmdlet
- where:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# 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
Expand All @@ -11,22 +11,43 @@
# 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.
# ----------------------------------------------------------------------------------

<#
.Synopsis
Creates a log analytics solution.
.Description
Creates a log analytics solution.
.Example
$workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n
New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IMonitoringSolutionsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolution
Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolution
.Notes
COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <IMonitoringSolutionsIdentity>: Identity Parameter
[Id <String>]: Resource identity path
[ManagementAssociationName <String>]: User ManagementAssociation Name.
[ManagementConfigurationName <String>]: User Management Configuration Name.
[ProviderName <String>]: Provider name for the parent resource.
[ResourceGroupName <String>]: The name of the resource group to get. The name is case insensitive.
[ResourceName <String>]: Parent resource name.
[ResourceType <String>]: Resource type for the parent resource
[SolutionName <String>]: User Solution Name.
[SubscriptionId <String>]: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
.Link
https://learn.microsoft.com/powershell/module/az.monitoringsolutions/new-azmonitorloganalyticssolution
.LINK
[Get-AzOperationalInsightsWorkspace](https://learn.microsoft.com/powershell/module/az.operationalinsights/get-azoperationalinsightsworkspace)
#>
function New-AzMonitorLogAnalyticsSolution {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolution])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolution])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -58,12 +79,12 @@ function New-AzMonitorLogAnalyticsSolution {

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolutionTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},

[Parameter(Mandatory)]
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Category('Body')]
[System.String]
# The Azure resource ID for the workspace where the solution will be deployed/enabled.
Expand All @@ -74,7 +95,8 @@ function New-AzMonitorLogAnalyticsSolution {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.MonitoringSolutions
Module Guid: 4e0cdc62-833e-41bd-aa97-f8f042986de3
Module Guid: a1bb7fa0-c386-4a56-a152-18e635e436e2
Download Help Link: https://learn.microsoft.com/powershell/module/az.monitoringsolutions
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -21,5 +21,5 @@ Creates a log analytics solution.
Deletes the solution in the subscription.

### [Update-AzMonitorLogAnalyticsSolution](Update-AzMonitorLogAnalyticsSolution.md)
Update the tags of a solution.
update the tags of a solution.

Original file line number Diff line number Diff line change
Expand Up @@ -128,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.MonitoringSolutions.Models.IMonitoringSolutionsIdentity
Expand Down Expand Up @@ -198,7 +197,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolution
### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolution

### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolutionPropertiesList

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Commonly used types are:
## PARAMETERS

### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

```yaml
Type: System.Management.Automation.PSObject
Expand Down Expand Up @@ -205,15 +206,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## INPUTS

### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.IMonitoringSolutionsIdentity

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolution
### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolution

## NOTES

## RELATED LINKS



[Get-AzOperationalInsightsWorkspace](https://learn.microsoft.com/powershell/module/az.operationalinsights/get-azoperationalinsightsworkspace)

Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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.MonitoringSolutions.Models.IMonitoringSolutionsIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Update-AzMonitorLogAnalyticsSolution

## SYNOPSIS
Update the tags of a solution.
update the tags of a solution.

## SYNTAX

Expand All @@ -25,7 +25,7 @@ Update-AzMonitorLogAnalyticsSolution -InputObject <IMonitoringSolutionsIdentity>
```

## DESCRIPTION
Update the tags of a solution.
update the tags of a solution.

## EXAMPLES

Expand Down Expand Up @@ -76,7 +76,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.MonitoringSolutions.Models.IMonitoringSolutionsIdentity
Expand Down Expand Up @@ -192,7 +191,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.Api20151101Preview.ISolution
### Microsoft.Azure.PowerShell.Cmdlets.MonitoringSolutions.Models.ISolution

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ Commonly used types are:
| AzureAutomation | Automation Hybrid Worker |
| LogicAppsManagement | Logic Apps Management |
| SQLDataClassification | SQL Data Discovery & Classification |

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "dcbd66ba-7ce8-4e55-ab03-e426736a30af"
"generate_Id": "0f52014a-cf5f-4a75-a510-d654b383d47c"
}
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function setupEnv() {
set-content -Path .\test\deployment-templates\operational-insightsworkspace\parameters.json -Value (ConvertTo-Json $workspacesParam)
New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\operational-insightsworkspace\template.json -TemplateParameterFile .\test\deployment-templates\operational-insightsworkspace\parameters.json -ResourceGroupName $env.resourceGroup
#>
$workspace01 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.resourceGroup -Name $workspacesName01 -Location $env.location -Sku "Standard"
$workspace02 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.resourceGroup -Name $workspacesName02 -Location $env.location -Sku "Standard"
$workspace01 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.resourceGroup -Name $workspacesName01 -Location $env.location
$workspace02 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.resourceGroup -Name $workspacesName02 -Location $env.location
$null = $env.Add('workspaceResourceId01', $workspace01.ResourceId)
$null = $env.Add('workspaceResourceId02', $workspace02.ResourceId)
Write-Host -ForegroundColor Green 'The operational insights workspace deployed successfully'
Expand Down
Loading