pspulumiyaml.azurenative.insights.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionInsightsGetDiagnosticSetting { param ( [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri ) process { $arguments = @{} $arguments["name"] = $name $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDiagnosticSetting -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetAnalyticsItem { param ( [parameter(mandatory=$False,HelpMessage='Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.)')] [string] $scopePath, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Id of a specific item defined in the Application Insights component)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of a specific item defined in the Application Insights component)')] [string] $name ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $arguments["scopePath"] = $scopePath if($PSBoundParameters.Keys -icontains 'id') { $arguments["id"] = $id } if($PSBoundParameters.Keys -icontains 'name') { $arguments["name"] = $name } $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getAnalyticsItem -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetDataCollectionEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the data collection endpoint. The name is case insensitive.)')] [string] $dataCollectionEndpointName ) process { $arguments = @{} $arguments["dataCollectionEndpointName"] = $dataCollectionEndpointName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDataCollectionEndpoint -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetAutoscaleSetting { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The autoscale setting name.)')] [string] $autoscaleSettingName ) process { $arguments = @{} $arguments["autoscaleSettingName"] = $autoscaleSettingName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getAutoscaleSetting -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetScheduledQueryRule { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["ruleName"] = $ruleName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getScheduledQueryRule -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsListEASubscriptionListMigrationDatePost { param ( ) process { $arguments = @{} $functionObject = Invoke-PulumiFunction -Name azure-native:insights:listEASubscriptionListMigrationDatePost -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetWorkbookTemplate { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getWorkbookTemplate -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetExportConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Continuous Export configuration ID. This is unique within a Application Insights component.)')] [string] $exportId, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["exportId"] = $exportId $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getExportConfiguration -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetFavorite { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The Id of a specific favorite defined in the Application Insights component)')] [string] $favoriteId ) process { $arguments = @{} $arguments["favoriteId"] = $favoriteId $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getFavorite -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetDataCollectionRuleAssociation { param ( [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='The name of the association. The name is case insensitive.)')] [string] $associationName ) process { $arguments = @{} $arguments["associationName"] = $associationName $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDataCollectionRuleAssociation -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetguestDiagnosticsSetting { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $diagnosticSettingsName ) process { $arguments = @{} $arguments["diagnosticSettingsName"] = $diagnosticSettingsName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getguestDiagnosticsSetting -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetWorkbook { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getWorkbook -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetDiagnosticServiceTokenReadOnly { param ( [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri ) process { $arguments = @{} $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDiagnosticServiceTokenReadOnly -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetLogProfile { param ( [parameter(mandatory=$False,HelpMessage='The name of the log profile.)')] [string] $logProfileName ) process { $arguments = @{} $arguments["logProfileName"] = $logProfileName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getLogProfile -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetMyWorkbook { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getMyWorkbook -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetSubscriptionDiagnosticSetting { param ( [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name ) process { $arguments = @{} $arguments["name"] = $name $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getSubscriptionDiagnosticSetting -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetComponentCurrentBillingFeature { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getComponentCurrentBillingFeature -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetLiveToken { param ( [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri ) process { $arguments = @{} $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getLiveToken -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetMetricAlert { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["ruleName"] = $ruleName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getMetricAlert -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetActionGroup { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the action group.)')] [string] $actionGroupName ) process { $arguments = @{} $arguments["actionGroupName"] = $actionGroupName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getActionGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetComponent { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getComponent -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetManagementGroupDiagnosticSetting { param ( [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The management group id.)')] [string] $managementGroupId ) process { $arguments = @{} $arguments["managementGroupId"] = $managementGroupId $arguments["name"] = $name $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getManagementGroupDiagnosticSetting -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetComponentLinkedStorageAccount { param ( [parameter(mandatory=$False,HelpMessage='The type of the Application Insights component data source for the linked storage account.)')] [string] $storageType, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $arguments["storageType"] = $storageType $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getComponentLinkedStorageAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetPrivateLinkScopedResource { param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the scoped resource object.)')] [string] $name ) process { $arguments = @{} $arguments["name"] = $name $arguments["resourceGroupName"] = $resourceGroupName $arguments["scopeName"] = $scopeName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getPrivateLinkScopedResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetWebTest { param ( [parameter(mandatory=$False,HelpMessage='The name of the Application Insights webtest resource.)')] [string] $webTestName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["webTestName"] = $webTestName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getWebTest -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetProactiveDetectionConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The ProactiveDetection configuration ID. This is unique within a Application Insights component.)')] [string] $configurationId, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["configurationId"] = $configurationId $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getProactiveDetectionConfiguration -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetTestResultFile { param ( [parameter(mandatory=$False,HelpMessage='The continuation token.)')] [string] $continuationToken, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights webtest resource.)')] [string] $webTestName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The format to use when returning the webtest result.)')] [string] $downloadAs, [parameter(mandatory=$False,HelpMessage='The location ID where the webtest was physically run.)')] [string] $geoLocationId, [parameter(mandatory=$False,HelpMessage='The posix (epoch) time stamp for the webtest result.)')] [int] $timeStamp, [parameter(mandatory=$False,HelpMessage='The success state criteria for the webtest result.)')] [bool] $testSuccessfulCriteria ) process { $arguments = @{} $arguments["downloadAs"] = $downloadAs $arguments["geoLocationId"] = $geoLocationId $arguments["resourceGroupName"] = $resourceGroupName $arguments["timeStamp"] = $timeStamp $arguments["webTestName"] = $webTestName if($PSBoundParameters.Keys -icontains 'continuationToken') { $arguments["continuationToken"] = $continuationToken } if($PSBoundParameters.Keys -icontains 'testSuccessfulCriteria') { $arguments["testSuccessfulCriteria"] = $testSuccessfulCriteria } $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getTestResultFile -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetPrivateLinkScope { param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["scopeName"] = $scopeName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getPrivateLinkScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetGuestDiagnosticsSettingsAssociation { param ( [parameter(mandatory=$False,HelpMessage='The fully qualified ID of the resource, including the resource name and resource type.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic settings association.)')] [string] $associationName ) process { $arguments = @{} $arguments["associationName"] = $associationName $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getGuestDiagnosticsSettingsAssociation -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["scopeName"] = $scopeName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetActivityLogAlert { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Activity Log Alert rule.)')] [string] $activityLogAlertName ) process { $arguments = @{} $arguments["activityLogAlertName"] = $activityLogAlertName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getActivityLogAlert -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetAlertRule { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["ruleName"] = $ruleName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getAlertRule -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetDataCollectionRule { param ( [parameter(mandatory=$False,HelpMessage='The name of the data collection rule. The name is case insensitive.)')] [string] $dataCollectionRuleName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["dataCollectionRuleName"] = $dataCollectionRuleName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDataCollectionRule -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionInsightsGetDiagnosticServiceTokenReadWrite { param ( [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri ) process { $arguments = @{} $arguments["resourceUri"] = $resourceUri $functionObject = Invoke-PulumiFunction -Name azure-native:insights:getDiagnosticServiceTokenReadWrite -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeInsightsExportConfiguration { [Alias('azure_native_insights_exportconfiguration')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Continuous Export configuration ID. This is unique within a Application Insights component.)')] [string] $exportId, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The document types to be exported, as comma separated values. Allowed values include ''Requests'', ''Event'', ''Exceptions'', ''Metrics'', ''PageViews'', ''PageViewPerformance'', ''Rdd'', ''PerformanceCounters'', ''Availability'', ''Messages''.)')] [string] $recordTypes, [parameter(mandatory=$False,HelpMessage='Deprecated)')] [string] $notificationQueueUri, [parameter(mandatory=$False,HelpMessage='The location ID of the destination storage container.)')] [string] $destinationStorageLocationId, [parameter(mandatory=$False,HelpMessage='The SAS URL for the destination storage container. It must grant write permission.)')] [string] $destinationAddress, [parameter(mandatory=$False,HelpMessage='The name of destination storage account.)')] [string] $destinationAccountId, [parameter(mandatory=$False,HelpMessage='The Continuous Export destination type. This has to be ''Blob''.)')] [string] $destinationType, [parameter(mandatory=$False,HelpMessage='Deprecated)')] [string] $notificationQueueEnabled, [parameter(mandatory=$False,HelpMessage='Set to ''true'' to create a Continuous Export configuration as enabled, otherwise set it to ''false''.)')] [string] $isEnabled, [parameter(mandatory=$False,HelpMessage='The subscription ID of the destination storage container.)')] [string] $destinationStorageSubscriptionId, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ExportConfiguration") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'exportId') { $resource.properties["exportId"] = $exportId } if($PSBoundParameters.Keys -icontains 'recordTypes') { $resource.properties["recordTypes"] = $recordTypes } if($PSBoundParameters.Keys -icontains 'notificationQueueUri') { $resource.properties["notificationQueueUri"] = $notificationQueueUri } if($PSBoundParameters.Keys -icontains 'destinationStorageLocationId') { $resource.properties["destinationStorageLocationId"] = $destinationStorageLocationId } if($PSBoundParameters.Keys -icontains 'destinationAddress') { $resource.properties["destinationAddress"] = $destinationAddress } if($PSBoundParameters.Keys -icontains 'destinationAccountId') { $resource.properties["destinationAccountId"] = $destinationAccountId } if($PSBoundParameters.Keys -icontains 'destinationType') { $resource.properties["destinationType"] = $destinationType } if($PSBoundParameters.Keys -icontains 'notificationQueueEnabled') { $resource.properties["notificationQueueEnabled"] = $notificationQueueEnabled } if($PSBoundParameters.Keys -icontains 'isEnabled') { $resource.properties["isEnabled"] = $isEnabled } if($PSBoundParameters.Keys -icontains 'destinationStorageSubscriptionId') { $resource.properties["destinationStorageSubscriptionId"] = $destinationStorageSubscriptionId } $global:pulumiresources += $resource return $resource } } class ApplicationInsightsComponentAnalyticsItemProperties { [string] $functionAlias } function New-AzureNativeTypeInsightsApplicationInsightsComponentAnalyticsItemProperties { param ( [parameter(mandatory=$False,HelpMessage='A function alias, used when the type of the item is Function)')] [string] $functionAlias ) process { return $([ApplicationInsightsComponentAnalyticsItemProperties]$PSBoundParameters) } } function New-AzureNativeInsightsAnalyticsItem { [Alias('azure_native_insights_analyticsitem')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Internally assigned unique id of the item definition.)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Enum indicating the type of the Analytics item.)')] [string] [ValidateSet('none', 'query', 'recent', 'function')] $type, [parameter(mandatory=$False,HelpMessage='A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.)')] [ApplicationInsightsComponentAnalyticsItemProperties] $properties, [parameter(mandatory=$False,HelpMessage='The content of this item)')] [string] $content, [parameter(mandatory=$False,HelpMessage='Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.)')] [string] $scopePath, [parameter(mandatory=$False,HelpMessage='Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.)')] [string] [ValidateSet('shared', 'user')] $scope, [parameter(mandatory=$False,HelpMessage='Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.)')] [bool] $overrideItem, [parameter(mandatory=$False,HelpMessage='The user-defined name of the item.)')] [string] $name, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:AnalyticsItem") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName $resource.properties["scopePath"] = $scopePath if($PSBoundParameters.Keys -icontains 'id') { $resource.properties["id"] = $id } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'content') { $resource.properties["content"] = $content } if($PSBoundParameters.Keys -icontains 'scope') { $resource.properties["scope"] = $scope } if($PSBoundParameters.Keys -icontains 'overrideItem') { $resource.properties["overrideItem"] = $overrideItem } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } $global:pulumiresources += $resource return $resource } } class PrivateEndpointProperty { [string] $id } function New-AzureNativeTypeInsightsPrivateEndpointProperty { param ( [parameter(mandatory=$False,HelpMessage='Resource id of the private endpoint.)')] [string] $id ) process { return $([PrivateEndpointProperty]$PSBoundParameters) } } class PrivateLinkServiceConnectionStateProperty { [string] $status [string] $description } function New-AzureNativeTypeInsightsPrivateLinkServiceConnectionStateProperty { param ( [parameter(mandatory=$False,HelpMessage='The private link service connection status.)')] [string] $status, [parameter(mandatory=$False,HelpMessage='The private link service connection description.)')] [string] $description ) process { return $([PrivateLinkServiceConnectionStateProperty]$PSBoundParameters) } } function New-AzureNativeInsightsPrivateEndpointConnection { [Alias('azure_native_insights_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='Private endpoint which the connection belongs to.)')] [PrivateEndpointProperty] $privateEndpoint, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Connection state of the private endpoint connection.)')] [PrivateLinkServiceConnectionStateProperty] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:PrivateEndpointConnection") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scopeName"] = $scopeName if($PSBoundParameters.Keys -icontains 'privateEndpoint') { $resource.properties["privateEndpoint"] = $privateEndpoint } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } if($PSBoundParameters.Keys -icontains 'privateLinkServiceConnectionState') { $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState } $global:pulumiresources += $resource return $resource } } class Dimension { [string[]] $values [string] $name [ValidateSet('Include')] [string] $operator } function New-AzureNativeTypeInsightsDimension { param ( [parameter(mandatory=$False,HelpMessage='List of dimension values)')] [string[]] $values, [parameter(mandatory=$False,HelpMessage='Name of the dimension)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Operator for dimension values)')] [string] [ValidateSet('Include')] $operator ) process { return $([Dimension]$PSBoundParameters) } } class Criteria { [string] $metricName [Dimension[]] $dimensions } function New-AzureNativeTypeInsightsCriteria { param ( [parameter(mandatory=$False,HelpMessage='Name of the metric)')] [string] $metricName, [parameter(mandatory=$False,HelpMessage='List of Dimensions for creating metric)')] $dimensions ) process { return $([Criteria]$PSBoundParameters) } } class LogToMetricAction { [string] $odataType [Criteria[]] $criteria } function New-AzureNativeTypeInsightsLogToMetricAction { param ( [parameter(mandatory=$False,HelpMessage='Specifies the action. Supported values - AlertingAction, LogToMetricAction Expected value is ''Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='Criteria of Metric)')] $criteria ) process { return $([LogToMetricAction]$PSBoundParameters) } } class Schedule { [int] $frequencyInMinutes [int] $timeWindowInMinutes } function New-AzureNativeTypeInsightsSchedule { param ( [parameter(mandatory=$False,HelpMessage='frequency (in minutes) at which rule condition should be evaluated.)')] [int] $frequencyInMinutes, [parameter(mandatory=$False,HelpMessage='Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).)')] [int] $timeWindowInMinutes ) process { return $([Schedule]$PSBoundParameters) } } class Source { [string[]] $authorizedResources [ValidateSet('ResultCount')] [string] $queryType [ValidateSet('ResultCount')] [string] $dataSourceId [ValidateSet('ResultCount')] [string] $query } function New-AzureNativeTypeInsightsSource { param ( [parameter(mandatory=$False,HelpMessage='List of Resource referred into query)')] [string[]] $authorizedResources, [parameter(mandatory=$False,HelpMessage='Set value to ''ResultCount'' .)')] [string] [ValidateSet('ResultCount')] $queryType, [parameter(mandatory=$False,HelpMessage='The resource uri over which log search query is to be run.)')] [string] $dataSourceId, [parameter(mandatory=$False,HelpMessage='Log search query. Required for action type - AlertingAction)')] [string] $query ) process { return $([Source]$PSBoundParameters) } } function New-AzureNativeInsightsScheduledQueryRule { [Alias('azure_native_insights_scheduledqueryrule')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Action needs to be taken on rule execution.)')] [LogToMetricAction] $action, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName, [parameter(mandatory=$False,HelpMessage='Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction)')] [Schedule] $schedule, [parameter(mandatory=$False,HelpMessage='The display name of the alert rule)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='Data Source against which rule will Query Data)')] [Source] $source, [parameter(mandatory=$False,HelpMessage='The flag which indicates whether the Log Search rule is enabled. Value should be true or false)')] [string] [ValidateSet('true', 'false')] $enabled, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The description of the Log Search rule.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The flag that indicates whether the alert should be automatically resolved or not. The default is false.)')] [bool] $autoMitigate, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ScheduledQueryRule") $resource.properties["action"] = $action $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["source"] = $source if($PSBoundParameters.Keys -icontains 'ruleName') { $resource.properties["ruleName"] = $ruleName } if($PSBoundParameters.Keys -icontains 'schedule') { $resource.properties["schedule"] = $schedule } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'enabled') { $resource.properties["enabled"] = $enabled } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'autoMitigate') { $resource.properties["autoMitigate"] = $autoMitigate } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class WebTestPropertiesConfiguration { [string] $webTest } function New-AzureNativeTypeInsightsWebTestPropertiesConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The XML specification of a WebTest to run against an application.)')] [string] $webTest ) process { return $([WebTestPropertiesConfiguration]$PSBoundParameters) } } function New-AzureNativeInsightsWebTest { [Alias('azure_native_insights_webtest')] param ( [parameter(mandatory=$False,HelpMessage='User defined name if this WebTest.)')] [string] $webTestName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='A list of where to physically run the tests from to give global coverage for accessibility of your application.)')] $locations, [parameter(mandatory=$False,HelpMessage='Unique ID of this WebTest. This is typically the same value as the Name field.)')] [string] $syntheticMonitorId, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Interval in seconds between test runs for this WebTest. Default value is 300.)')] [int] $frequency, [parameter(mandatory=$False,HelpMessage='Purpose/user defined descriptive test for this WebTest.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Allow for retries should this WebTest fail.)')] [bool] $retryEnabled, [parameter(mandatory=$False,HelpMessage='Seconds until this WebTest will timeout and fail. Default value is 30.)')] [int] $timeout, [parameter(mandatory=$False,HelpMessage='The kind of web test that this web test watches. Choices are ping and multistep.)')] $kind, [parameter(mandatory=$False,HelpMessage='The kind of web test this is, valid choices are ping and multistep.)')] $webTestKind, [parameter(mandatory=$False,HelpMessage='Is the test actively being monitored.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='An XML configuration specification for a WebTest.)')] [WebTestPropertiesConfiguration] $configuration, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:WebTest") $resource.properties["locations"] = $locations $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["syntheticMonitorId"] = $syntheticMonitorId $resource.properties["webTestKind"] = $webTestKind if($PSBoundParameters.Keys -icontains 'webTestName') { $resource.properties["webTestName"] = $webTestName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'frequency') { $resource.properties["frequency"] = $frequency } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'retryEnabled') { $resource.properties["retryEnabled"] = $retryEnabled } if($PSBoundParameters.Keys -icontains 'timeout') { $resource.properties["timeout"] = $timeout } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'enabled') { $resource.properties["enabled"] = $enabled } if($PSBoundParameters.Keys -icontains 'configuration') { $resource.properties["configuration"] = $configuration } $global:pulumiresources += $resource return $resource } } class LogAnalyticsDestination { [string] $name [string] $workspaceResourceId } function New-AzureNativeTypeInsightsLogAnalyticsDestination { param ( [parameter(mandatory=$False,HelpMessage='A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The resource ID of the Log Analytics workspace.)')] [string] $workspaceResourceId ) process { return $([LogAnalyticsDestination]$PSBoundParameters) } } class DestinationsSpecAzureMonitorMetrics { [string] $name } function New-AzureNativeTypeInsightsDestinationsSpecAzureMonitorMetrics { param ( [parameter(mandatory=$False,HelpMessage='A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.)')] [string] $name ) process { return $([DestinationsSpecAzureMonitorMetrics]$PSBoundParameters) } } class DataCollectionRuleDestinations { [LogAnalyticsDestination[]] $logAnalytics [DestinationsSpecAzureMonitorMetrics] $azureMonitorMetrics } function New-AzureNativeTypeInsightsDataCollectionRuleDestinations { param ( [parameter(mandatory=$False,HelpMessage='List of Log Analytics destinations.)')] $logAnalytics, [parameter(mandatory=$False,HelpMessage='Azure Monitor Metrics destination.)')] [DestinationsSpecAzureMonitorMetrics] $azureMonitorMetrics ) process { return $([DataCollectionRuleDestinations]$PSBoundParameters) } } class SyslogDataSource { [string[]] $streams [string[]] $facilityNames [string[]] $logLevels [string] $name } function New-AzureNativeTypeInsightsSyslogDataSource { param ( [parameter(mandatory=$False,HelpMessage='List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.)')] $streams, [parameter(mandatory=$False,HelpMessage='The list of facility names.)')] $facilityNames, [parameter(mandatory=$False,HelpMessage='The log levels to collect.)')] $logLevels, [parameter(mandatory=$False,HelpMessage='A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.)')] [string] $name ) process { return $([SyslogDataSource]$PSBoundParameters) } } class WindowsEventLogDataSource { [string] $name [string[]] $xPathQueries [string[]] $streams } function New-AzureNativeTypeInsightsWindowsEventLogDataSource { param ( [parameter(mandatory=$False,HelpMessage='A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='A list of Windows Event Log queries in XPATH format.)')] [string[]] $xPathQueries, [parameter(mandatory=$False,HelpMessage='List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.)')] $streams ) process { return $([WindowsEventLogDataSource]$PSBoundParameters) } } class PerfCounterDataSource { [string] $name [int] $samplingFrequencyInSeconds [string[]] $counterSpecifiers [string[]] $streams } function New-AzureNativeTypeInsightsPerfCounterDataSource { param ( [parameter(mandatory=$False,HelpMessage='A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The number of seconds between consecutive counter measurements (samples).)')] [int] $samplingFrequencyInSeconds, [parameter(mandatory=$False,HelpMessage='A list of specifier names of the performance counters you want to collect. Use a wildcard (*) to collect a counter for all instances. To get a list of performance counters on Windows, run the command ''typeperf''.)')] [string[]] $counterSpecifiers, [parameter(mandatory=$False,HelpMessage='List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.)')] $streams ) process { return $([PerfCounterDataSource]$PSBoundParameters) } } class ExtensionDataSource { [string[]] $inputDataSources [string] $name [object] $extensionSettings [string] $extensionName [string[]] $streams } function New-AzureNativeTypeInsightsExtensionDataSource { param ( [parameter(mandatory=$False,HelpMessage='The list of data sources this extension needs data from.)')] [string[]] $inputDataSources, [parameter(mandatory=$False,HelpMessage='A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The extension settings. The format is specific for particular extension.)')] $extensionSettings, [parameter(mandatory=$False,HelpMessage='The name of the VM extension.)')] [string] $extensionName, [parameter(mandatory=$False,HelpMessage='List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.)')] $streams ) process { return $([ExtensionDataSource]$PSBoundParameters) } } class DataCollectionRuleDataSources { [SyslogDataSource[]] $syslog [WindowsEventLogDataSource[]] $windowsEventLogs [PerfCounterDataSource[]] $performanceCounters [ExtensionDataSource[]] $extensions } function New-AzureNativeTypeInsightsDataCollectionRuleDataSources { param ( [parameter(mandatory=$False,HelpMessage='The list of Syslog data source configurations.)')] $syslog, [parameter(mandatory=$False,HelpMessage='The list of Windows Event Log data source configurations.)')] $windowsEventLogs, [parameter(mandatory=$False,HelpMessage='The list of performance counter data source configurations.)')] $performanceCounters, [parameter(mandatory=$False,HelpMessage='The list of Azure VM extension data source configurations.)')] $extensions ) process { return $([DataCollectionRuleDataSources]$PSBoundParameters) } } function New-AzureNativeInsightsDataCollectionRule { [Alias('azure_native_insights_datacollectionrule')] param ( [parameter(mandatory=$False,HelpMessage='The specification of data flows.)')] $dataFlows, [parameter(mandatory=$False,HelpMessage='Description of the data collection rule.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The specification of destinations.)')] [DataCollectionRuleDestinations] $destinations, [parameter(mandatory=$False,HelpMessage='The kind of the resource.)')] [string] [ValidateSet('Linux', 'Windows')] $kind, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.)')] [DataCollectionRuleDataSources] $dataSources, [parameter(mandatory=$False,HelpMessage='The name of the data collection rule. The name is case insensitive.)')] [string] $dataCollectionRuleName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives.)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:DataCollectionRule") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'dataFlows') { $resource.properties["dataFlows"] = $dataFlows } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'destinations') { $resource.properties["destinations"] = $destinations } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'dataSources') { $resource.properties["dataSources"] = $dataSources } if($PSBoundParameters.Keys -icontains 'dataCollectionRuleName') { $resource.properties["dataCollectionRuleName"] = $dataCollectionRuleName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsPrivateLinkScope { [Alias('azure_native_insights_privatelinkscope')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:PrivateLinkScope") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'scopeName') { $resource.properties["scopeName"] = $scopeName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsSubscriptionDiagnosticSetting { [Alias('azure_native_insights_subscriptiondiagnosticsetting')] param ( [parameter(mandatory=$False,HelpMessage='The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2)')] [string] $workspaceId, [parameter(mandatory=$False,HelpMessage='The list of logs settings.)')] $logs, [parameter(mandatory=$False,HelpMessage='Location of the resource)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The resource Id for the event hub authorization rule.)')] [string] $eventHubAuthorizationRuleId, [parameter(mandatory=$False,HelpMessage='The name of the event hub. If none is specified, the default event hub will be selected.)')] [string] $eventHubName, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.)')] [string] $serviceBusRuleId, [parameter(mandatory=$False,HelpMessage='The resource ID of the storage account to which you would like to send Diagnostic Logs.)')] [string] $storageAccountId, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:SubscriptionDiagnosticSetting") if($PSBoundParameters.Keys -icontains 'workspaceId') { $resource.properties["workspaceId"] = $workspaceId } if($PSBoundParameters.Keys -icontains 'logs') { $resource.properties["logs"] = $logs } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'eventHubAuthorizationRuleId') { $resource.properties["eventHubAuthorizationRuleId"] = $eventHubAuthorizationRuleId } if($PSBoundParameters.Keys -icontains 'eventHubName') { $resource.properties["eventHubName"] = $eventHubName } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'serviceBusRuleId') { $resource.properties["serviceBusRuleId"] = $serviceBusRuleId } if($PSBoundParameters.Keys -icontains 'storageAccountId') { $resource.properties["storageAccountId"] = $storageAccountId } $global:pulumiresources += $resource return $resource } } class RetentionPolicy { [bool] $enabled [int] $days } function New-AzureNativeTypeInsightsRetentionPolicy { param ( [parameter(mandatory=$False,HelpMessage='a value indicating whether the retention policy is enabled.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='the number of days for the retention in days. A value of 0 will retain the events indefinitely.)')] [int] $days ) process { return $([RetentionPolicy]$PSBoundParameters) } } function New-AzureNativeInsightsLogProfile { [Alias('azure_native_insights_logprofile')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='the categories of the logs. These categories are created as is convenient to the user. Some values are: ''Write'', ''Delete'', and/or ''Action.'')')] [string[]] $categories, [parameter(mandatory=$False,HelpMessage='The name of the log profile.)')] [string] $logProfileName, [parameter(mandatory=$False,HelpMessage='List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the ''global'' location.)')] [string[]] $locations, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: ''{service bus resource ID}/authorizationrules/{key name}''.)')] [string] $serviceBusRuleId, [parameter(mandatory=$False,HelpMessage='the retention policy for the events in the log.)')] [RetentionPolicy] $retentionPolicy, [parameter(mandatory=$False,HelpMessage='the resource id of the storage account to which you would like to send the Activity Log.)')] [string] $storageAccountId, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:LogProfile") $resource.properties["categories"] = $categories $resource.properties["locations"] = $locations $resource.properties["retentionPolicy"] = $retentionPolicy if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'logProfileName') { $resource.properties["logProfileName"] = $logProfileName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'serviceBusRuleId') { $resource.properties["serviceBusRuleId"] = $serviceBusRuleId } if($PSBoundParameters.Keys -icontains 'storageAccountId') { $resource.properties["storageAccountId"] = $storageAccountId } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsManagementGroupDiagnosticSetting { [Alias('azure_native_insights_managementgroupdiagnosticsetting')] param ( [parameter(mandatory=$False,HelpMessage='The management group id.)')] [string] $managementGroupId, [parameter(mandatory=$False,HelpMessage='The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.)')] [string] $serviceBusRuleId, [parameter(mandatory=$False,HelpMessage='The resource ID of the storage account to which you would like to send Diagnostic Logs.)')] [string] $storageAccountId, [parameter(mandatory=$False,HelpMessage='The resource Id for the event hub authorization rule.)')] [string] $eventHubAuthorizationRuleId, [parameter(mandatory=$False,HelpMessage='The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2)')] [string] $workspaceId, [parameter(mandatory=$False,HelpMessage='The name of the event hub. If none is specified, the default event hub will be selected.)')] [string] $eventHubName, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The list of logs settings.)')] $logs, [parameter(mandatory=$False,HelpMessage='Location of the resource)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ManagementGroupDiagnosticSetting") $resource.properties["managementGroupId"] = $managementGroupId if($PSBoundParameters.Keys -icontains 'serviceBusRuleId') { $resource.properties["serviceBusRuleId"] = $serviceBusRuleId } if($PSBoundParameters.Keys -icontains 'storageAccountId') { $resource.properties["storageAccountId"] = $storageAccountId } if($PSBoundParameters.Keys -icontains 'eventHubAuthorizationRuleId') { $resource.properties["eventHubAuthorizationRuleId"] = $eventHubAuthorizationRuleId } if($PSBoundParameters.Keys -icontains 'workspaceId') { $resource.properties["workspaceId"] = $workspaceId } if($PSBoundParameters.Keys -icontains 'eventHubName') { $resource.properties["eventHubName"] = $eventHubName } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'logs') { $resource.properties["logs"] = $logs } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsGuestDiagnosticsSettingsAssociation { [Alias('azure_native_insights_guestdiagnosticssettingsassociation')] param ( [parameter(mandatory=$False,HelpMessage='The guest diagnostic settings name.)')] [string] $guestDiagnosticSettingsName, [parameter(mandatory=$False,HelpMessage='The fully qualified ID of the resource, including the resource name and resource type.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic settings association.)')] [string] $associationName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:GuestDiagnosticsSettingsAssociation") $resource.properties["guestDiagnosticSettingsName"] = $guestDiagnosticSettingsName $resource.properties["resourceUri"] = $resourceUri if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'associationName') { $resource.properties["associationName"] = $associationName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsDiagnosticSetting { [Alias('azure_native_insights_diagnosticsetting')] param ( [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.)')] [string] $serviceBusRuleId, [parameter(mandatory=$False,HelpMessage='The list of metric settings.)')] $metrics, [parameter(mandatory=$False,HelpMessage='The resource ID of the storage account to which you would like to send Diagnostic Logs.)')] [string] $storageAccountId, [parameter(mandatory=$False,HelpMessage='The resource Id for the event hub authorization rule.)')] [string] $eventHubAuthorizationRuleId, [parameter(mandatory=$False,HelpMessage='The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2)')] [string] $workspaceId, [parameter(mandatory=$False,HelpMessage='A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.))')] [string] $logAnalyticsDestinationType, [parameter(mandatory=$False,HelpMessage='The name of the event hub. If none is specified, the default event hub will be selected.)')] [string] $eventHubName, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The list of logs settings.)')] $logs, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:DiagnosticSetting") $resource.properties["resourceUri"] = $resourceUri if($PSBoundParameters.Keys -icontains 'serviceBusRuleId') { $resource.properties["serviceBusRuleId"] = $serviceBusRuleId } if($PSBoundParameters.Keys -icontains 'metrics') { $resource.properties["metrics"] = $metrics } if($PSBoundParameters.Keys -icontains 'storageAccountId') { $resource.properties["storageAccountId"] = $storageAccountId } if($PSBoundParameters.Keys -icontains 'eventHubAuthorizationRuleId') { $resource.properties["eventHubAuthorizationRuleId"] = $eventHubAuthorizationRuleId } if($PSBoundParameters.Keys -icontains 'workspaceId') { $resource.properties["workspaceId"] = $workspaceId } if($PSBoundParameters.Keys -icontains 'logAnalyticsDestinationType') { $resource.properties["logAnalyticsDestinationType"] = $logAnalyticsDestinationType } if($PSBoundParameters.Keys -icontains 'eventHubName') { $resource.properties["eventHubName"] = $eventHubName } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'logs') { $resource.properties["logs"] = $logs } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsAutoscaleSetting { [Alias('azure_native_insights_autoscalesetting')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='the collection of notifications.)')] $notifications, [parameter(mandatory=$False,HelpMessage='the resource identifier of the resource that the autoscale setting should be added to.)')] [string] $targetResourceUri, [parameter(mandatory=$False,HelpMessage='the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.)')] $profiles, [parameter(mandatory=$False,HelpMessage='the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is ''true''.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='The autoscale setting name.)')] [string] $autoscaleSettingName, [parameter(mandatory=$False,HelpMessage='the location of the resource that the autoscale setting should be added to.)')] [string] $targetResourceLocation, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='the name of the autoscale setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:AutoscaleSetting") $resource.properties["profiles"] = $profiles $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'notifications') { $resource.properties["notifications"] = $notifications } if($PSBoundParameters.Keys -icontains 'targetResourceUri') { $resource.properties["targetResourceUri"] = $targetResourceUri } if($PSBoundParameters.Keys -icontains 'enabled') { $resource.properties["enabled"] = $enabled } if($PSBoundParameters.Keys -icontains 'autoscaleSettingName') { $resource.properties["autoscaleSettingName"] = $autoscaleSettingName } if($PSBoundParameters.Keys -icontains 'targetResourceLocation') { $resource.properties["targetResourceLocation"] = $targetResourceLocation } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class ApplicationInsightsComponentDataVolumeCap { [int] $cap [int] $warningThreshold [bool] $stopSendNotificationWhenHitThreshold [bool] $stopSendNotificationWhenHitCap } function New-AzureNativeTypeInsightsApplicationInsightsComponentDataVolumeCap { param ( [parameter(mandatory=$False,HelpMessage='Daily data volume cap in GB.)')] [int] $cap, [parameter(mandatory=$False,HelpMessage='Reserved, not used for now.)')] [int] $warningThreshold, [parameter(mandatory=$False,HelpMessage='Reserved, not used for now.)')] [bool] $stopSendNotificationWhenHitThreshold, [parameter(mandatory=$False,HelpMessage='Do not send a notification email when the daily data volume cap is met.)')] [bool] $stopSendNotificationWhenHitCap ) process { return $([ApplicationInsightsComponentDataVolumeCap]$PSBoundParameters) } } function New-AzureNativeInsightsComponentCurrentBillingFeature { [Alias('azure_native_insights_componentcurrentbillingfeature')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Current enabled pricing plan. When the component is in the Enterprise plan, this will list both ''Basic'' and ''Application Insights Enterprise''.)')] [string[]] $currentBillingFeatures, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='An Application Insights component daily data volume cap)')] [ApplicationInsightsComponentDataVolumeCap] $dataVolumeCap, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ComponentCurrentBillingFeature") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'currentBillingFeatures') { $resource.properties["currentBillingFeatures"] = $currentBillingFeatures } if($PSBoundParameters.Keys -icontains 'dataVolumeCap') { $resource.properties["dataVolumeCap"] = $dataVolumeCap } $global:pulumiresources += $resource return $resource } } class WorkbookManagedIdentity { [string] $type } function New-AzureNativeTypeInsightsWorkbookManagedIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] [string] $type ) process { return $([WorkbookManagedIdentity]$PSBoundParameters) } } function New-AzureNativeInsightsWorkbook { [Alias('azure_native_insights_workbook')] param ( [parameter(mandatory=$False,HelpMessage='BYOS Storage Account URI)')] [string] $storageUri, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Azure resource type)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Identity used for BYOS)')] [WorkbookManagedIdentity] $identity, [parameter(mandatory=$False,HelpMessage='ResourceId for a source resource.)')] [string] $sourceId, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Workbook category, as defined by the user at creation time.)')] [string] $category, [parameter(mandatory=$False,HelpMessage='Azure resource name)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Configuration of this particular workbook. Configuration data is a string containing valid JSON)')] [string] $serializedData, [parameter(mandatory=$False,HelpMessage='The user-defined name (display name) of the workbook.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The kind of workbook. Choices are user and shared.)')] [string] [ValidateSet('user', 'shared')] $kind, [parameter(mandatory=$False,HelpMessage='Workbook version)')] [string] $version, [parameter(mandatory=$False,HelpMessage='Azure resource Id)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:Workbook") $resource.properties["category"] = $category $resource.properties["displayName"] = $displayName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["serializedData"] = $serializedData if($PSBoundParameters.Keys -icontains 'storageUri') { $resource.properties["storageUri"] = $storageUri } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'sourceId') { $resource.properties["sourceId"] = $sourceId } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'version') { $resource.properties["version"] = $version } if($PSBoundParameters.Keys -icontains 'id') { $resource.properties["id"] = $id } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsWorkbookTemplate { [Alias('azure_native_insights_workbooktemplate')] param ( [parameter(mandatory=$False,HelpMessage='Workbook galleries supported by the template.)')] $galleries, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.)')] [int] $priority, [parameter(mandatory=$False,HelpMessage='Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.)')] [object] $localized, [parameter(mandatory=$False,HelpMessage='Information about the author of the workbook template.)')] [string] $author, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Valid JSON object containing workbook template payload.)')] $templateData, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:WorkbookTemplate") $resource.properties["galleries"] = $galleries $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["templateData"] = $templateData if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'priority') { $resource.properties["priority"] = $priority } if($PSBoundParameters.Keys -icontains 'localized') { $resource.properties["localized"] = $localized } if($PSBoundParameters.Keys -icontains 'author') { $resource.properties["author"] = $author } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class AlertRuleLeafCondition { [string] $equals [string[]] $containsAny [string] $field } function New-AzureNativeTypeInsightsAlertRuleLeafCondition { param ( [parameter(mandatory=$False,HelpMessage='The value of the event''s field will be compared to this value (case-insensitive) to determine if the condition is met.)')] [string] $equals, [parameter(mandatory=$False,HelpMessage='The value of the event''s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.)')] [string[]] $containsAny, [parameter(mandatory=$False,HelpMessage='The name of the Activity Log event''s field that this condition will examine. The possible values for this field are (case-insensitive): ''resourceId'', ''category'', ''caller'', ''level'', ''operationName'', ''resourceGroup'', ''resourceProvider'', ''status'', ''subStatus'', ''resourceType'', or anything beginning with ''properties''.)')] [string] $field ) process { return $([AlertRuleLeafCondition]$PSBoundParameters) } } class AlertRuleAnyOfOrLeafCondition { [AlertRuleLeafCondition[]] $anyOf [string[]] $containsAny [string] $field [string] $equals } function New-AzureNativeTypeInsightsAlertRuleAnyOfOrLeafCondition { param ( [parameter(mandatory=$False,HelpMessage='An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.)')] $anyOf, [parameter(mandatory=$False,HelpMessage='The value of the event''s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.)')] [string[]] $containsAny, [parameter(mandatory=$False,HelpMessage='The name of the Activity Log event''s field that this condition will examine. The possible values for this field are (case-insensitive): ''resourceId'', ''category'', ''caller'', ''level'', ''operationName'', ''resourceGroup'', ''resourceProvider'', ''status'', ''subStatus'', ''resourceType'', or anything beginning with ''properties''.)')] [string] $field, [parameter(mandatory=$False,HelpMessage='The value of the event''s field will be compared to this value (case-insensitive) to determine if the condition is met.)')] [string] $equals ) process { return $([AlertRuleAnyOfOrLeafCondition]$PSBoundParameters) } } class AlertRuleAllOfCondition { [AlertRuleAnyOfOrLeafCondition[]] $allOf } function New-AzureNativeTypeInsightsAlertRuleAllOfCondition { param ( [parameter(mandatory=$False,HelpMessage='The list of Activity Log Alert rule conditions.)')] $allOf ) process { return $([AlertRuleAllOfCondition]$PSBoundParameters) } } class ActionGroup { [object] $webhookProperties [string] $actionGroupId } function New-AzureNativeTypeInsightsActionGroup { param ( [parameter(mandatory=$False,HelpMessage='the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.)')] [hashtable] $webhookProperties, [parameter(mandatory=$False,HelpMessage='The resource ID of the Action Group. This cannot be null or empty.)')] [string] $actionGroupId ) process { return $([ActionGroup]$PSBoundParameters) } } class ActionList { [ActionGroup[]] $actionGroups } function New-AzureNativeTypeInsightsActionList { param ( [parameter(mandatory=$False,HelpMessage='The list of the Action Groups.)')] $actionGroups ) process { return $([ActionList]$PSBoundParameters) } } function New-AzureNativeInsightsActivityLogAlert { [Alias('azure_native_insights_activitylogalert')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The condition that will cause this alert to activate.)')] [AlertRuleAllOfCondition] $condition, [parameter(mandatory=$False,HelpMessage='The name of the Activity Log Alert rule.)')] [string] $activityLogAlertName, [parameter(mandatory=$False,HelpMessage='Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The actions that will activate when the condition is met.)')] [ActionList] $actions, [parameter(mandatory=$False,HelpMessage='A description of this Activity Log Alert rule.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.)')] [string[]] $scopes, [parameter(mandatory=$False,HelpMessage='The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be ''global''.)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ActivityLogAlert") $resource.properties["actions"] = $actions $resource.properties["condition"] = $condition $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scopes"] = $scopes if($PSBoundParameters.Keys -icontains 'activityLogAlertName') { $resource.properties["activityLogAlertName"] = $activityLogAlertName } if($PSBoundParameters.Keys -icontains 'enabled') { $resource.properties["enabled"] = $enabled } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class MyWorkbookManagedIdentity { [string] $type } function New-AzureNativeTypeInsightsMyWorkbookManagedIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] [string] $type ) process { return $([MyWorkbookManagedIdentity]$PSBoundParameters) } } function New-AzureNativeInsightsMyWorkbook { [Alias('azure_native_insights_myworkbook')] param ( [parameter(mandatory=$False,HelpMessage='BYOS Storage Account URI)')] [string] $storageUri, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Azure resource type)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Identity used for BYOS)')] [MyWorkbookManagedIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Optional resourceId for a source resource.)')] [string] $sourceId, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Workbook category, as defined by the user at creation time.)')] [string] $category, [parameter(mandatory=$False,HelpMessage='Azure resource name)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Configuration of this particular private workbook. Configuration data is a string containing valid JSON)')] [string] $serializedData, [parameter(mandatory=$False,HelpMessage='The user-defined name of the private workbook.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The kind of workbook. Choices are user and shared.)')] [string] [ValidateSet('user', 'shared')] $kind, [parameter(mandatory=$False,HelpMessage='This instance''s version of the data model. This can change as new features are added that can be marked private workbook.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='Azure resource Id)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:MyWorkbook") $resource.properties["category"] = $category $resource.properties["displayName"] = $displayName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["serializedData"] = $serializedData if($PSBoundParameters.Keys -icontains 'storageUri') { $resource.properties["storageUri"] = $storageUri } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'sourceId') { $resource.properties["sourceId"] = $sourceId } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'version') { $resource.properties["version"] = $version } if($PSBoundParameters.Keys -icontains 'id') { $resource.properties["id"] = $id } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } $global:pulumiresources += $resource return $resource } } class RuleWebhookAction { [string] $odataType [object] $properties [string] $serviceUri } function New-AzureNativeTypeInsightsRuleWebhookAction { param ( [parameter(mandatory=$False,HelpMessage='specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction. Expected value is ''Microsoft.Azure.Management.Insights.Models.RuleWebhookAction''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.)')] [hashtable] $properties, [parameter(mandatory=$False,HelpMessage='the service uri to Post the notification when the alert activates or resolves.)')] [string] $serviceUri ) process { return $([RuleWebhookAction]$PSBoundParameters) } } class ThresholdRuleCondition { [ValidateSet('Average', 'Minimum', 'Maximum', 'Total', 'Last')] [object] $timeAggregation [ValidateSet('Average', 'Minimum', 'Maximum', 'Total', 'Last')] [int] $threshold [ValidateSet('GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual')] [object] $operator [ValidateSet('GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual')] [string] $windowSize [ValidateSet('GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual')] [string] $odataType [object] $dataSource #todo add class here } class RuleMetricDataSource { [string] $resourceLocation [string] $metricName [string] $resourceUri [string] $odataType [string] $legacyResourceId [string] $metricNamespace } function New-AzureNativeTypeInsightsRuleMetricDataSource { param ( [parameter(mandatory=$False,HelpMessage='the location of the resource.)')] [string] $resourceLocation, [parameter(mandatory=$False,HelpMessage='the name of the metric that defines what the rule monitors.)')] [string] $metricName, [parameter(mandatory=$False,HelpMessage='the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource Expected value is ''Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.)')] [string] $legacyResourceId, [parameter(mandatory=$False,HelpMessage='the namespace of the metric.)')] [string] $metricNamespace ) process { return $([RuleMetricDataSource]$PSBoundParameters) } } function New-AzureNativeTypeInsightsThresholdRuleCondition { param ( [parameter(mandatory=$False,HelpMessage='the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.)')] $timeAggregation, [parameter(mandatory=$False,HelpMessage='the threshold value that activates the alert.)')] [int] $threshold, [parameter(mandatory=$False,HelpMessage='the operator used to compare the data and the threshold.)')] $operator, [parameter(mandatory=$False,HelpMessage='the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.)')] [string] $windowSize, [parameter(mandatory=$False,HelpMessage='specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric). Expected value is ''Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.)')] [RuleMetricDataSource] $dataSource ) process { return $([ThresholdRuleCondition]$PSBoundParameters) } } function New-AzureNativeInsightsAlertRule { [Alias('azure_native_insights_alertrule')] param ( [parameter(mandatory=$False,HelpMessage='the provisioning state.)')] [string] $provisioningState, [parameter(mandatory=$False,HelpMessage='action that is performed when the alert rule becomes active, and when an alert condition is resolved.)')] [RuleWebhookAction] $action, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName, [parameter(mandatory=$False,HelpMessage='the flag that indicates whether the alert rule is enabled.)')] [bool] $isEnabled, [parameter(mandatory=$False,HelpMessage='the condition that results in the alert rule being activated.)')] [ThresholdRuleCondition] $condition, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='the name of the alert rule.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.)')] $actions, [parameter(mandatory=$False,HelpMessage='the description of the alert rule that will be included in the alert email.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:AlertRule") $resource.properties["condition"] = $condition $resource.properties["isEnabled"] = $isEnabled $resource.properties["name"] = $name $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'provisioningState') { $resource.properties["provisioningState"] = $provisioningState } if($PSBoundParameters.Keys -icontains 'action') { $resource.properties["action"] = $action } if($PSBoundParameters.Keys -icontains 'ruleName') { $resource.properties["ruleName"] = $ruleName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'actions') { $resource.properties["actions"] = $actions } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsComponent { [Alias('azure_native_insights_component')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Purge data immediately after 30 days.)')] [bool] $immediatePurgeDataOn30Days, [parameter(mandatory=$False,HelpMessage='Disable IP masking.)')] [bool] $disableIpMasking, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Type of application being monitored.)')] [string] [ValidateSet('web', 'other')] $applicationType, [parameter(mandatory=$False,HelpMessage='Describes what tool created this Application Insights component. Customers using this API should set this to the default ''rest''.)')] [string] [ValidateSet('rest')] $requestSource, [parameter(mandatory=$False,HelpMessage='Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to ''Bluefield'' when creating/updating a component via the REST API.)')] [string] [ValidateSet('Bluefield')] $flowType, [parameter(mandatory=$False,HelpMessage='Indicates the flow of the ingestion.)')] [string] [ValidateSet('ApplicationInsights', 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics')] $ingestionMode, [parameter(mandatory=$False,HelpMessage='The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='Retention period in days.)')] [int] $retentionInDays, [parameter(mandatory=$False,HelpMessage='The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.)')] [string] $hockeyAppId, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.)')] [int] $samplingPercentage, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:Component") $resource.properties["applicationType"] = $applicationType $resource.properties["kind"] = $kind $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'immediatePurgeDataOn30Days') { $resource.properties["immediatePurgeDataOn30Days"] = $immediatePurgeDataOn30Days } if($PSBoundParameters.Keys -icontains 'disableIpMasking') { $resource.properties["disableIpMasking"] = $disableIpMasking } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'requestSource') { $resource.properties["requestSource"] = $requestSource } if($PSBoundParameters.Keys -icontains 'flowType') { $resource.properties["flowType"] = $flowType } if($PSBoundParameters.Keys -icontains 'ingestionMode') { $resource.properties["ingestionMode"] = $ingestionMode } if($PSBoundParameters.Keys -icontains 'retentionInDays') { $resource.properties["retentionInDays"] = $retentionInDays } if($PSBoundParameters.Keys -icontains 'hockeyAppId') { $resource.properties["hockeyAppId"] = $hockeyAppId } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'samplingPercentage') { $resource.properties["samplingPercentage"] = $samplingPercentage } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsActionGroup { [Alias('azure_native_insights_actiongroup')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The list of azure function receivers that are part of this action group.)')] $azureFunctionReceivers, [parameter(mandatory=$False,HelpMessage='The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.)')] $armRoleReceivers, [parameter(mandatory=$False,HelpMessage='The list of AzureAppPush receivers that are part of this action group.)')] $azureAppPushReceivers, [parameter(mandatory=$False,HelpMessage='The list of logic app receivers that are part of this action group.)')] $logicAppReceivers, [parameter(mandatory=$False,HelpMessage='The list of email receivers that are part of this action group.)')] $emailReceivers, [parameter(mandatory=$False,HelpMessage='The list of ITSM receivers that are part of this action group.)')] $itsmReceivers, [parameter(mandatory=$False,HelpMessage='The name of the action group.)')] [string] $actionGroupName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The list of webhook receivers that are part of this action group.)')] $webhookReceivers, [parameter(mandatory=$False,HelpMessage='The list of SMS receivers that are part of this action group.)')] $smsReceivers, [parameter(mandatory=$False,HelpMessage='The list of AutomationRunbook receivers that are part of this action group.)')] $automationRunbookReceivers, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The short name of the action group. This will be used in SMS messages.)')] [string] $groupShortName, [parameter(mandatory=$False,HelpMessage='Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='The list of voice receivers that are part of this action group.)')] $voiceReceivers, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ActionGroup") $resource.properties["enabled"] = $enabled $resource.properties["groupShortName"] = $groupShortName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'azureFunctionReceivers') { $resource.properties["azureFunctionReceivers"] = $azureFunctionReceivers } if($PSBoundParameters.Keys -icontains 'armRoleReceivers') { $resource.properties["armRoleReceivers"] = $armRoleReceivers } if($PSBoundParameters.Keys -icontains 'azureAppPushReceivers') { $resource.properties["azureAppPushReceivers"] = $azureAppPushReceivers } if($PSBoundParameters.Keys -icontains 'logicAppReceivers') { $resource.properties["logicAppReceivers"] = $logicAppReceivers } if($PSBoundParameters.Keys -icontains 'emailReceivers') { $resource.properties["emailReceivers"] = $emailReceivers } if($PSBoundParameters.Keys -icontains 'itsmReceivers') { $resource.properties["itsmReceivers"] = $itsmReceivers } if($PSBoundParameters.Keys -icontains 'actionGroupName') { $resource.properties["actionGroupName"] = $actionGroupName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'webhookReceivers') { $resource.properties["webhookReceivers"] = $webhookReceivers } if($PSBoundParameters.Keys -icontains 'smsReceivers') { $resource.properties["smsReceivers"] = $smsReceivers } if($PSBoundParameters.Keys -icontains 'automationRunbookReceivers') { $resource.properties["automationRunbookReceivers"] = $automationRunbookReceivers } if($PSBoundParameters.Keys -icontains 'voiceReceivers') { $resource.properties["voiceReceivers"] = $voiceReceivers } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsComponentLinkedStorageAccount { [Alias('azure_native_insights_componentlinkedstorageaccount')] param ( [parameter(mandatory=$False,HelpMessage='The type of the Application Insights component data source for the linked storage account.)')] [string] $storageType, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Linked storage account resource ID)')] [string] $linkedStorageAccount, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ComponentLinkedStorageAccount") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'storageType') { $resource.properties["storageType"] = $storageType } if($PSBoundParameters.Keys -icontains 'linkedStorageAccount') { $resource.properties["linkedStorageAccount"] = $linkedStorageAccount } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsDataCollectionRuleAssociation { [Alias('azure_native_insights_datacollectionruleassociation')] param ( [parameter(mandatory=$False,HelpMessage='Description of the association.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The identifier of the resource.)')] [string] $resourceUri, [parameter(mandatory=$False,HelpMessage='The resource ID of the data collection rule that is to be associated.)')] [string] $dataCollectionRuleId, [parameter(mandatory=$False,HelpMessage='The name of the association. The name is case insensitive.)')] [string] $associationName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:DataCollectionRuleAssociation") $resource.properties["resourceUri"] = $resourceUri if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'dataCollectionRuleId') { $resource.properties["dataCollectionRuleId"] = $dataCollectionRuleId } if($PSBoundParameters.Keys -icontains 'associationName') { $resource.properties["associationName"] = $associationName } $global:pulumiresources += $resource return $resource } } class ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { [bool] $supportsEmailNotifications [bool] $isInPreview [bool] $isEnabledByDefault [string] $description [string] $name [string] $displayName [string] $helpUrl [bool] $isHidden } function New-AzureNativeTypeInsightsApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { param ( [parameter(mandatory=$False,HelpMessage='A flag indicating whether email notifications are supported for detections for this rule)')] [bool] $supportsEmailNotifications, [parameter(mandatory=$False,HelpMessage='A flag indicating whether the rule is in preview)')] [bool] $isInPreview, [parameter(mandatory=$False,HelpMessage='A flag indicating whether the rule is enabled by default)')] [bool] $isEnabledByDefault, [parameter(mandatory=$False,HelpMessage='The rule description)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The rule name)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The rule name as it is displayed in UI)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='URL which displays additional info about the proactive detection rule)')] [string] $helpUrl, [parameter(mandatory=$False,HelpMessage='A flag indicating whether the rule is hidden (from the UI))')] [bool] $isHidden ) process { return $([ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions]$PSBoundParameters) } } function New-AzureNativeInsightsProactiveDetectionConfiguration { [Alias('azure_native_insights_proactivedetectionconfiguration')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The last time this rule was updated)')] [string] $lastUpdatedTime, [parameter(mandatory=$False,HelpMessage='Custom email addresses for this rule notifications)')] [string[]] $customEmails, [parameter(mandatory=$False,HelpMessage='The ProactiveDetection configuration ID. This is unique within a Application Insights component.)')] [string] $configurationId, [parameter(mandatory=$False,HelpMessage='A flag that indicates whether this rule is enabled by the user)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='Static definitions of the ProactiveDetection configuration rule (same values for all components).)')] [ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions] $ruleDefinitions, [parameter(mandatory=$False,HelpMessage='The rule name)')] [string] $name, [parameter(mandatory=$False,HelpMessage='A flag that indicated whether notifications on this rule should be sent to subscription owners)')] [bool] $sendEmailsToSubscriptionOwners, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:ProactiveDetectionConfiguration") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'lastUpdatedTime') { $resource.properties["lastUpdatedTime"] = $lastUpdatedTime } if($PSBoundParameters.Keys -icontains 'customEmails') { $resource.properties["customEmails"] = $customEmails } if($PSBoundParameters.Keys -icontains 'configurationId') { $resource.properties["configurationId"] = $configurationId } if($PSBoundParameters.Keys -icontains 'enabled') { $resource.properties["enabled"] = $enabled } if($PSBoundParameters.Keys -icontains 'ruleDefinitions') { $resource.properties["ruleDefinitions"] = $ruleDefinitions } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'sendEmailsToSubscriptionOwners') { $resource.properties["sendEmailsToSubscriptionOwners"] = $sendEmailsToSubscriptionOwners } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsPrivateLinkScopedResource { [Alias('azure_native_insights_privatelinkscopedresource')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Monitor PrivateLinkScope resource.)')] [string] $scopeName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the scoped resource object.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The resource id of the scoped Azure monitor resource.)')] [string] $linkedResourceId, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:PrivateLinkScopedResource") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scopeName"] = $scopeName if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'linkedResourceId') { $resource.properties["linkedResourceId"] = $linkedResourceId } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsFavorite { [Alias('azure_native_insights_favorite')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Application Insights component resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Flag denoting wether or not this favorite was generated from a template.)')] [bool] $isGeneratedFromTemplate, [parameter(mandatory=$False,HelpMessage='Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.)')] $favoriteType, [parameter(mandatory=$False,HelpMessage='This instance''s version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON)')] [string] $config, [parameter(mandatory=$False,HelpMessage='The Id of a specific favorite defined in the Application Insights component)')] [string] $favoriteId, [parameter(mandatory=$False,HelpMessage='Favorite category, as defined by the user at creation time.)')] [string] $category, [parameter(mandatory=$False,HelpMessage='A list of 0 or more tags that are associated with this favorite definition)')] [string[]] $tags, [parameter(mandatory=$False,HelpMessage='The user-defined name of the favorite.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The source of the favorite definition.)')] [string] $sourceType, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:Favorite") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'isGeneratedFromTemplate') { $resource.properties["isGeneratedFromTemplate"] = $isGeneratedFromTemplate } if($PSBoundParameters.Keys -icontains 'favoriteType') { $resource.properties["favoriteType"] = $favoriteType } if($PSBoundParameters.Keys -icontains 'version') { $resource.properties["version"] = $version } if($PSBoundParameters.Keys -icontains 'config') { $resource.properties["config"] = $config } if($PSBoundParameters.Keys -icontains 'favoriteId') { $resource.properties["favoriteId"] = $favoriteId } if($PSBoundParameters.Keys -icontains 'category') { $resource.properties["category"] = $category } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'sourceType') { $resource.properties["sourceType"] = $sourceType } $global:pulumiresources += $resource return $resource } } class WebtestLocationAvailabilityCriteria { [int] $failedLocationCount [string] $webTestId [string] $odataType [string] $componentId } function New-AzureNativeTypeInsightsWebtestLocationAvailabilityCriteria { param ( [parameter(mandatory=$False,HelpMessage='The number of failed locations.)')] [int] $failedLocationCount, [parameter(mandatory=$False,HelpMessage='The Application Insights web test Id.)')] [string] $webTestId, [parameter(mandatory=$False,HelpMessage='specifies the type of the alert criteria. Expected value is ''Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='The Application Insights resource Id.)')] [string] $componentId ) process { return $([WebtestLocationAvailabilityCriteria]$PSBoundParameters) } } function New-AzureNativeInsightsMetricAlert { [Alias('azure_native_insights_metricalert')] param ( [parameter(mandatory=$False,HelpMessage='how often the metric alert is evaluated represented in ISO 8601 duration format.)')] [string] $evaluationFrequency, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='defines the specific alert criteria information.)')] [WebtestLocationAvailabilityCriteria] $criteria, [parameter(mandatory=$False,HelpMessage='the flag that indicates whether the alert should be auto resolved or not. The default is true.)')] [bool] $autoMitigate, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.)')] [string] $targetResourceRegion, [parameter(mandatory=$False,HelpMessage='Alert severity {0, 1, 2, 3, 4})')] [int] $severity, [parameter(mandatory=$False,HelpMessage='the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.)')] [string] $targetResourceType, [parameter(mandatory=$False,HelpMessage='the description of the metric alert that will be included in the alert email.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='the list of resource id''s that this metric alert is scoped to.)')] [string[]] $scopes, [parameter(mandatory=$False,HelpMessage='the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.)')] $actions, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the rule.)')] [string] $ruleName, [parameter(mandatory=$False,HelpMessage='the flag that indicates whether the metric alert is enabled.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.)')] [string] $windowSize, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:MetricAlert") $resource.properties["criteria"] = $criteria $resource.properties["enabled"] = $enabled $resource.properties["evaluationFrequency"] = $evaluationFrequency $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scopes"] = $scopes $resource.properties["severity"] = $severity $resource.properties["windowSize"] = $windowSize if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'autoMitigate') { $resource.properties["autoMitigate"] = $autoMitigate } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'targetResourceRegion') { $resource.properties["targetResourceRegion"] = $targetResourceRegion } if($PSBoundParameters.Keys -icontains 'targetResourceType') { $resource.properties["targetResourceType"] = $targetResourceType } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'actions') { $resource.properties["actions"] = $actions } if($PSBoundParameters.Keys -icontains 'ruleName') { $resource.properties["ruleName"] = $ruleName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeInsightsGuestDiagnosticsSetting { [Alias('azure_native_insights_guestdiagnosticssetting')] param ( [parameter(mandatory=$False,HelpMessage='the array of data source object which are configured to collect and send data)')] $dataSources, [parameter(mandatory=$False,HelpMessage='The name of the diagnostic setting.)')] [string] $diagnosticSettingsName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage=')')] [string] $proxySetting, [parameter(mandatory=$False,HelpMessage='Operating system type for the configuration)')] [string] $osType, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:guestDiagnosticsSetting") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'dataSources') { $resource.properties["dataSources"] = $dataSources } if($PSBoundParameters.Keys -icontains 'diagnosticSettingsName') { $resource.properties["diagnosticSettingsName"] = $diagnosticSettingsName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'proxySetting') { $resource.properties["proxySetting"] = $proxySetting } if($PSBoundParameters.Keys -icontains 'osType') { $resource.properties["osType"] = $osType } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class DataCollectionEndpointNetworkAcls { [ValidateSet('Enabled', 'Disabled')] [string] $publicNetworkAccess } function New-AzureNativeTypeInsightsDataCollectionEndpointNetworkAcls { param ( [parameter(mandatory=$False,HelpMessage='The configuration to set whether network access from public internet to the endpoints are allowed.)')] [string] [ValidateSet('Enabled', 'Disabled')] $publicNetworkAccess ) process { return $([DataCollectionEndpointNetworkAcls]$PSBoundParameters) } } function New-AzureNativeInsightsDataCollectionEndpoint { [Alias('azure_native_insights_datacollectionendpoint')] param ( [parameter(mandatory=$False,HelpMessage='The immutable ID of this data collection endpoint resource. This property is READ-ONLY.)')] [string] $immutableId, [parameter(mandatory=$False,HelpMessage='The kind of the resource.)')] [string] [ValidateSet('Linux', 'Windows')] $kind, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Description of the data collection endpoint.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Network access control rules for the endpoints.)')] [DataCollectionEndpointNetworkAcls] $networkAcls, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the data collection endpoint. The name is case insensitive.)')] [string] $dataCollectionEndpointName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:insights:DataCollectionEndpoint") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'immutableId') { $resource.properties["immutableId"] = $immutableId } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'networkAcls') { $resource.properties["networkAcls"] = $networkAcls } if($PSBoundParameters.Keys -icontains 'dataCollectionEndpointName') { $resource.properties["dataCollectionEndpointName"] = $dataCollectionEndpointName } $global:pulumiresources += $resource return $resource } } |