diff --git a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.format.ps1xml b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.format.ps1xml
index ff5be938c411..0f63c373e470 100644
--- a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.format.ps1xml
+++ b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.format.ps1xml
@@ -14,9 +14,18 @@
+
+
+
+
+
+
+
+
+
@@ -30,9 +39,18 @@
Scope
+
+ SimplifiedSolutionsResourceName
+
+
+ SolutionId
+ SolutionResourceName
+
+ SubscriptionId
+ TroubleshooterName
@@ -376,15 +394,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.AutomatedCheckResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.AutomatedCheckResult
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.AutomatedCheckResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.AutomatedCheckResult
+
+
+
+
+
+
@@ -392,15 +416,21 @@
Result
+
+ Status
+
+
+ Version
+
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.CheckNameAvailabilityResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.CheckNameAvailabilityResponse
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.CheckNameAvailabilityResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.CheckNameAvailabilityResponse
@@ -432,9 +462,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ContinueRequestBody
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ClassificationService
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ContinueRequestBody
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ClassificationService
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DisplayName
+
+
+ ResourceType
+
+
+ ServiceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ContinueRequestBody
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ContinueRequestBody
@@ -454,9 +518,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Diagnostic
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Diagnostic
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Diagnostic
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Diagnostic
@@ -482,9 +546,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticInvocation
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocation
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticInvocation
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocation
@@ -504,9 +568,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticInvocationAdditionalParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocationAdditionalParameters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticInvocationAdditionalParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocationAdditionalParameters
@@ -526,9 +590,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResource
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResource
@@ -590,9 +654,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourceProperties
@@ -618,9 +682,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResourcePropertiesGlobalParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesGlobalParameters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiagnosticResourcePropertiesGlobalParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesGlobalParameters
@@ -640,9 +704,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiscoveryNlpRequest
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.DiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiscoveryNlpRequest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AdditionalContext
+
+
+ IssueSummary
+
+
+ ResourceId
+
+
+ ServiceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiscoveryResponse
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiscoveryResponse
@@ -662,9 +766,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Error
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Error
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Error
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Error
@@ -690,9 +794,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Filter
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Filter
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Filter
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Filter
@@ -724,9 +828,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Insight
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Insight
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Insight
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Insight
@@ -758,9 +862,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.MetricsBasedChart
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChart
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.MetricsBasedChart
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChart
@@ -804,9 +908,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ResponseOption
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.NlpSolutions
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.NlpSolutions
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProblemClassificationId
+
+
+ ProblemDescription
+
+
+ ProblemTitle
+
+
+ ServiceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ResponseOption
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ResponseOption
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ResponseOption
@@ -832,9 +976,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ResponseValidationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ResponseValidationProperties
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ResponseValidationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ResponseValidationProperties
@@ -850,6 +994,9 @@
+
+
+
@@ -866,15 +1013,18 @@
ValidationErrorMessage
+
+ ValidationScope
+
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.RestartTroubleshooterResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.RestartTroubleshooterResponse
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.RestartTroubleshooterResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.RestartTroubleshooterResponse
@@ -900,9 +1050,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SearchResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SearchResult
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SearchResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SearchResult
@@ -964,9 +1114,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Section
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Section
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Section
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Content
+
+
+ Title
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionSelfHelp
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Section
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionSelfHelp
@@ -992,9 +1170,157 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionMetadataProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Content
+
+
+ ProvisioningState
+
+
+ SolutionId
+
+
+ Title
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesAppendix
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesAppendix
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesParameters
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataProperties
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionMetadataProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataProperties
@@ -1032,9 +1358,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionMetadataResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataResource
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionMetadataResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataResource
@@ -1090,18 +1416,94 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionNlpMetadataResource
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionNlpMetadataResource
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1110,10 +1512,28 @@
- Location
+ Name
- Name
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ LocationResourceGroupName
@@ -1124,9 +1544,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties
@@ -1164,9 +1584,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResourcePropertiesParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParameters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionResourcePropertiesParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParameters
@@ -1186,12 +1606,79 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionsDiagnostic
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceSelfHelp
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionsDiagnostic
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceSelfHelp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnostic
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnostic
+
+
+
+
+
+
@@ -1211,6 +1698,9 @@
+
+ EstimatedCompletionTime
+ ReplacementKey
@@ -1232,9 +1722,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionsTroubleshooters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsResourcePropertiesSelfHelp
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsResourcePropertiesSelfHelp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Content
+
+
+ SolutionId
+
+
+ Title
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshooters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.SolutionsTroubleshooters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshooters
@@ -1266,9 +1790,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Step
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionWarmUpRequestBodyParameters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Step
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionWarmUpRequestBodyParameters
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Step
+
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Step
@@ -1318,9 +1864,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.StepInput
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.StepInput
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.StepInput
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.StepInput
@@ -1333,6 +1879,9 @@
+
+
+
@@ -1358,6 +1907,9 @@
QuestionId
+
+ QuestionTitle
+ QuestionType
@@ -1376,9 +1928,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TriggerCriterion
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterion
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TriggerCriterion
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterion
@@ -1404,9 +1956,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterInstanceProperties
@@ -1432,9 +1984,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterInstancePropertiesParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterInstancePropertiesParameters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterInstancePropertiesParameters
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterInstancePropertiesParameters
@@ -1454,9 +2006,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterResource
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterResource
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterResource
@@ -1518,9 +2070,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterResponse
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.TroubleshooterResponse
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TroubleshooterResponse
@@ -1552,9 +2104,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Video
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Video
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.Video
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Video
@@ -1586,9 +2138,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.VideoGroup
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroup
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.VideoGroup
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroup
@@ -1608,9 +2160,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.VideoGroupVideo
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupVideo
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.VideoGroupVideo
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupVideo
@@ -1636,9 +2188,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.WebResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResult
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.WebResult
+ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResult
diff --git a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psd1 b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psd1
index abbbd3ffba0c..5114f71871d7 100644
--- a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psd1
+++ b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psd1
@@ -1,142 +1,24 @@
-#
-# Module manifest for module 'Az.SelfHelp'
-#
-# Generated by: Microsoft Corporation
-#
-# Generated on: 11/10/2023
-#
-
@{
-
-# Script module or binary module file associated with this manifest.
-RootModule = './Az.SelfHelp.psm1'
-
-# Version number of this module.
-ModuleVersion = '0.1.1'
-
-# Supported PSEditions
-CompatiblePSEditions = 'Core', 'Desktop'
-
-# ID used to uniquely identify this module
-GUID = '2705ffd2-39d8-491f-b0c6-14fca2dc3727'
-
-# Author of this module
-Author = 'Microsoft Corporation'
-
-# Company or vendor of this module
-CompanyName = 'Microsoft Corporation'
-
-# Copyright statement for this module
-Copyright = 'Microsoft Corporation. All rights reserved.'
-
-# Description of the functionality provided by this module
-Description = 'Microsoft Azure PowerShell: SelfHelp cmdlets'
-
-# Minimum version of the PowerShell engine required by this module
-PowerShellVersion = '5.1'
-
-# Name of the PowerShell host required by this module
-# PowerShellHostName = ''
-
-# Minimum version of the PowerShell host required by this module
-# PowerShellHostVersion = ''
-
-# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-DotNetFrameworkVersion = '4.7.2'
-
-# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-# ClrVersion = ''
-
-# Processor architecture (None, X86, Amd64) required by this module
-# ProcessorArchitecture = ''
-
-# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; })
-
-# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = './bin/Az.SelfHelp.private.dll'
-
-# Script files (.ps1) that are run in the caller's environment prior to importing this module.
-# ScriptsToProcess = @()
-
-# Type files (.ps1xml) to be loaded when importing this module
-# TypesToProcess = @()
-
-# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = './Az.SelfHelp.format.ps1xml'
-
-# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
-# NestedModules = @()
-
-# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Get-AzSelfHelpDiagnostic', 'Get-AzSelfHelpDiscoverySolution',
- 'Get-AzSelfHelpSolution', 'Get-AzSelfHelpTroubleshooter',
- 'Invoke-AzSelfHelpCheckNameAvailability',
- 'Invoke-AzSelfHelpContinueTroubleshooter',
- 'New-AzSelfHelpDiagnostic', 'New-AzSelfHelpSolution',
- 'New-AzSelfHelpTroubleshooter', 'Restart-AzSelfHelpTroubleshooter',
- 'Stop-AzSelfHelpTroubleshooter', 'Update-AzSelfHelpSolution'
-
-# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
-CmdletsToExport = @()
-
-# Variables to export from this module
-# VariablesToExport = @()
-
-# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = '*'
-
-# DSC resources to export from this module
-# DscResourcesToExport = @()
-
-# List of all modules packaged with this module
-# ModuleList = @()
-
-# List of all files packaged with this module
-# FileList = @()
-
-# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
-PrivateData = @{
-
+ GUID = '2705ffd2-39d8-491f-b0c6-14fca2dc3727'
+ RootModule = './Az.SelfHelp.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: SelfHelp cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.SelfHelp.private.dll'
+ FormatsToProcess = './Az.SelfHelp.format.ps1xml'
+ FunctionsToExport = 'Get-AzSelfHelpDiagnostic', 'Get-AzSelfHelpDiscoverySolution', 'Get-AzSelfHelpSimplifiedSolution', 'Get-AzSelfHelpSolution', 'Get-AzSelfHelpSolutionSelfHelp', 'Get-AzSelfHelpTroubleshooter', 'Invoke-AzSelfHelpCheckNameAvailability', 'Invoke-AzSelfHelpContinueTroubleshooter', 'Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope', 'Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope', 'Invoke-AzSelfHelpWarmSolutionUp', 'New-AzSelfHelpDiagnostic', 'New-AzSelfHelpSimplifiedSolution', 'New-AzSelfHelpSolution', 'New-AzSelfHelpTroubleshooter', 'Restart-AzSelfHelpTroubleshooter', 'Stop-AzSelfHelpTroubleshooter', 'Update-AzSelfHelpSolution', '*'
+ AliasesToExport = '*'
+ PrivateData = @{
PSData = @{
-
- # Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','PSModule','SelfHelp'
-
- # A URL to the license for this module.
- LicenseUri = 'https://aka.ms/azps-license'
-
- # A URL to the main website for this project.
- ProjectUri = 'https://github.com/Azure/azure-powershell'
-
- # A URL to an icon representing this module.
- # IconUri = ''
-
- # ReleaseNotes of this module
- ReleaseNotes = '* Added support for discovery API as the first point of entry in Help RP.
-* Added support for new solution types (Diagnostics, Azure Solutions, Troubleshooters) in preview
-* Enabled customers to access Azure curated, relevant self-help solutions including diagnostics and Azure solutions at the resource and subscription scopes.
-* Implemented filter parameters such as solutionType, problemClassificationId/problemId, resourceId, and resourceType to enable customers to get more granular results through discovery API.
-* Enabled customers to trigger one or more applicable solutions such as diagnostics, components within Azure solutions, and Troubleshooters'
-
- # Prerelease string of this module
- # Prerelease = ''
-
- # Flag to indicate whether the module requires explicit user acceptance for install/update/save
- # RequireLicenseAcceptance = $false
-
- # External dependent modules of this module
- # ExternalModuleDependencies = @()
-
- } # End of PSData hashtable
-
- } # End of PrivateData hashtable
-
-# HelpInfo URI of this module
-# HelpInfoURI = ''
-
-# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
-# DefaultCommandPrefix = ''
-
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'SelfHelp'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
}
-
diff --git a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psm1 b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psm1
index 7dca99691941..8ae10975f279 100644
--- a/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psm1
+++ b/src/SelfHelp/SelfHelp.Autorest/Az.SelfHelp.psm1
@@ -47,37 +47,41 @@
# Ask for the shared functionality table
$VTable = Register-AzModule
-
+
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
# Following two delegates are added for telemetry
$instance.GetTelemetryId = $VTable.GetTelemetryId
$instance.Telemetry = $VTable.Telemetry
-
+
+ # Delegate to sanitize the output object
+ $instance.SanitizeOutput = $VTable.SanitizerHandler
+
+ # Delegate to get the telemetry info
+ $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
# Tweaks the pipeline per call
$instance.OnNewRequest = $VTable.OnNewRequest
-
+
# Gets shared parameter values
$instance.GetParameterValue = $VTable.GetParameterValue
-
+
# Allows shared module to listen to events from this module
$instance.EventListener = $VTable.EventListener
-
+
# Gets shared argument completers
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
-
+
# The name of the currently selected Azure profile
$instance.ProfileName = $VTable.ProfileName
-
# Load the custom module
$customModulePath = Join-Path $PSScriptRoot './custom/Az.SelfHelp.custom.psm1'
if(Test-Path $customModulePath) {
$null = Import-Module -Name $customModulePath
}
-
+
# Export nothing to clear implicit exports
Export-ModuleMember
@@ -97,12 +101,12 @@
# Load the last folder if no profile is selected
$profileDirectory = $directories | Select-Object -Last 1
}
-
+
if($profileDirectory) {
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
$exportsPath = $profileDirectory.FullName
}
-
+
if($exportsPath) {
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
diff --git a/src/SelfHelp/SelfHelp.Autorest/README.md b/src/SelfHelp/SelfHelp.Autorest/README.md
index 96a764bcb608..75899e66513f 100644
--- a/src/SelfHelp/SelfHelp.Autorest/README.md
+++ b/src/SelfHelp/SelfHelp.Autorest/README.md
@@ -3,7 +3,6 @@
This directory contains the PowerShell module for the SelfHelp service.
---
-
## Info
- Modifiable: yes
- Generated: all
@@ -30,10 +29,10 @@ For information on how to develop for `Az.SelfHelp`, see [how-to.md](how-to.md).
```yaml
# pin the swagger version by using the commit id instead of branch name
-branch: 270eeb7a7883e0ad4e183e809fb67c6551d0eaa0
+commit: 1145a0df0f91b5f0f1f5ab66667899a61eda5e2b
require:
# readme.azure.noprofile.md is the common configuration file
- - $(this-folder)/../readme.azure.noprofile.md
+ - $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/help/resource-manager/readme.md
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - $(this-folder)/azure-rest-api-specs/specification/help/resource-manager/readme.md
@@ -53,6 +52,10 @@ subject-prefix: $(service-name)
resourcegroup-append: true
nested-object-to-string: true
+# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
+use-extension:
+ "@autorest/powershell": "3.x"
+
directive:
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
diff --git a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/diagnostics.json b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/diagnostics.json
index e24c39f50595..74d3bb6ab8ba 100644
--- a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/diagnostics.json
+++ b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/diagnostics.json
@@ -1,6 +1,6 @@
{
"resourceType": "diagnostics",
- "apiVersion": "2023-09-01-preview",
+ "apiVersion": "2024-03-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.selfhelp"
},
diff --git a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/selfHelp.json b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/selfHelp.json
new file mode 100644
index 000000000000..a4a8b6239a3b
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/selfHelp.json
@@ -0,0 +1,37 @@
+{
+ "resourceType": "selfHelp",
+ "apiVersion": "2024-03-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.selfhelp"
+ },
+ "commands": [
+ {
+ "name": "Get-AzSelfHelpSolutionSelfHelp",
+ "description": "Finds and Executes a Self Help Solution based on the Solution Id.\nThese are static self help content to help users troubleshoot their issues.",
+ "path": "/providers/Microsoft.Help/selfHelp/{solutionId}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolutionselfhelp"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-SolutionId "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Finds and Executes a Self Help Solution based on the Solution Id. These are static self help content to help users troubleshoot their issues.",
+ "parameters": [
+ {
+ "name": "-SolutionId",
+ "value": "[Path.solutionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/simplifiedSolutions.json b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/simplifiedSolutions.json
new file mode 100644
index 000000000000..7ebb983d5cdf
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/simplifiedSolutions.json
@@ -0,0 +1,42 @@
+{
+ "resourceType": "simplifiedSolutions",
+ "apiVersion": "2024-03-01-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.selfhelp"
+ },
+ "commands": [
+ {
+ "name": "Get-AzSelfHelpSimplifiedSolution",
+ "description": "Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.",
+ "path": "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsimplifiedsolution"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-SResourceName ",
+ "-Scope "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.",
+ "parameters": [
+ {
+ "name": "-SResourceName",
+ "value": "[Path.simplifiedSolutionsResourceName]"
+ },
+ {
+ "name": "-Scope",
+ "value": "[Path.scope]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/solutions.json b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/solutions.json
index 832b5dac9d8d..467168dd47ab 100644
--- a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/solutions.json
+++ b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/solutions.json
@@ -1,6 +1,6 @@
{
"resourceType": "solutions",
- "apiVersion": "2023-09-01-preview",
+ "apiVersion": "2024-03-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.selfhelp"
},
@@ -37,6 +37,39 @@
]
}
]
+ },
+ {
+ "name": "Invoke-AzSelfHelpWarmSolutionUp",
+ "description": "Warm up the solution resource by preloading asynchronous diagnostics results into cache",
+ "path": "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}/warmup",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpwarmsolutionup"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Scope ",
+ "-SolutionResourceName "
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Warm up the solution resource by preloading asynchronous diagnostics results into cache",
+ "parameters": [
+ {
+ "name": "-Scope",
+ "value": "[Path.scope]"
+ },
+ {
+ "name": "-SolutionResourceName",
+ "value": "[Path.solutionResourceName]"
+ }
+ ]
+ }
+ ]
}
]
}
diff --git a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/troubleshooters.json b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/troubleshooters.json
index e08bd0b5d594..d97c2a006635 100644
--- a/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/troubleshooters.json
+++ b/src/SelfHelp/SelfHelp.Autorest/UX/Microsoft.Help/troubleshooters.json
@@ -1,6 +1,6 @@
{
"resourceType": "troubleshooters",
- "apiVersion": "2023-09-01-preview",
+ "apiVersion": "2024-03-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.selfhelp"
},
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpDiscoverySolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpDiscoverySolution.md
index 5a8990ae4919..0ed9b409fa91 100644
--- a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpDiscoverySolution.md
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpDiscoverySolution.md
@@ -1,7 +1,7 @@
### Example 1: Get Solution Metadata by resource id
```powershell
- Get-AzSelfHelpDiscoverySolution -Scope "subscriptions/6bded6d5-a6df-44e1-96d3-bf71f6f5f8ba/resourceGroups/test-rgName/providers/Microsoft.KeyVault/vaults/testKeyVault" -Filter "problemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'"
+Get-AzSelfHelpDiscoverySolution -Filter "ProblemClassificationId eq 'a5db90c3-f147-bce6-83b0-ab5e0aeca1f0'"
```
```output
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSimplifiedSolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSimplifiedSolution.md
new file mode 100644
index 000000000000..2ee2d19bb4b3
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSimplifiedSolution.md
@@ -0,0 +1,16 @@
+### Example 1: Get Simplified Solutions
+```powershell
+$resourceName = "sampleRName"
+
+Get-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
+sampleRName aits-data-inestion
+```
+
+Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.
+
+
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolution.md
index e7a62089d0cc..a88402ab74c9 100644
--- a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolution.md
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolution.md
@@ -1,12 +1,12 @@
### Example 1: Get-AzSelfHelpSolution by resource id
```powershell
-Get-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions//resourceGroups/testRG/providers/Microsoft.KeyVault/testkv/testDB
+Get-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev
```
```output
-Location Name ResourceGroupName
--------- ---- -----------------
- test-resource testRG
+Location Name ResourceGroupName
+-------- ---- -----------------
+ test-resource234 DiagnosticsRp-Ev2AssistId-Public-Dev
```
Get SelfHelp Solution by resource id
\ No newline at end of file
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolutionSelfHelp.md b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolutionSelfHelp.md
new file mode 100644
index 000000000000..43b086cfaabd
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Get-AzSelfHelpSolutionSelfHelp.md
@@ -0,0 +1,12 @@
+### Example 1: Get Self Help Solutions for a given solutionId
+```powershell
+Get-AzSelfHelpSolutionSelfHelp -SolutionId "apollo-48996ff7-002f-47c1-85b2-df138843d5d5"
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
+apollo-48996ff7-002f-47c1-85b2-df138843d5d5
+```
+
+Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional video tutorials, links and guides to public documentation related to a specific problem that enables users to troubleshoot Azure issues.
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.md b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.md
new file mode 100644
index 000000000000..e3a0360f25b1
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.md
@@ -0,0 +1,11 @@
+### Example 1: Discover Solution using natural language at subscription scope
+```powershell
+Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope -SubscriptionId "6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -IssueSummary "Billing Issues"
+```
+
+```output
+[No output]
+```
+
+Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue summary and subscription.
+
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.md b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.md
new file mode 100644
index 000000000000..ee4eac47d321
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.md
@@ -0,0 +1,11 @@
+### Example 1: Discover Solution using natural language at tenant scope
+```powershell
+Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope -IssueSummary "Billing Issues"
+```
+
+```output
+[No output]
+```
+
+Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue summary.
+
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpWarmSolutionUp.md b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpWarmSolutionUp.md
new file mode 100644
index 000000000000..46ad661d2088
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Invoke-AzSelfHelpWarmSolutionUp.md
@@ -0,0 +1,16 @@
+### Example 1: Warm up the solution resource
+```powershell
+$resourceName = "sampleRName"
+$parameters = [ordered]@{
+ "ProductId" = "13491"
+}
+Invoke-AzSelfHelpWarmSolutionUp -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SolutionResourceName $resourceName -Parameter $parameters
+```
+
+```output
+[No output]
+```
+
+Warm up the solution resource by preloading asynchronous diagnostics results into cache
+
+
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSimplifiedSolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSimplifiedSolution.md
new file mode 100644
index 000000000000..f0081c34efaa
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSimplifiedSolution.md
@@ -0,0 +1,21 @@
+### Example 1: Create a new simplified solution for a resource
+```powershell
+$resourceName = "sampleRName"
+$solutionId = "9004345-7759"
+$parameters = [ordered]@{
+
+ "SearchText" = "Billing"
+}
+New-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName -SolutionId $solutionId -Parameter $parameters
+```
+
+```output
+Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
+---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
+sampleRName
+
+```
+
+Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions as the input.
+
+
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSolution.md
index 9bb1c92d8dcc..781d6d5f2253 100644
--- a/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSolution.md
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/New-AzSelfHelpSolution.md
@@ -1,20 +1,21 @@
### Example 1: Create New SelfHelp Solution
```powershell
-$criteria = [ordered]@{
- "name" ="SolutionId"
- "value" = "keyvault-lostdeletedkeys-apollo-solution"
-}
-$parameters = [ordered]@{
- "SearchText" = "Can not RDP"
- "vault_name" = "DemoKeyvault"
-}
-New-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions//resourceGroups/testRG/providers/Microsoft.KeyVault/kv/testDB -Parameter $parameters -TriggerCriterion $criteria
+$criteria = [ordered]@{
+ "name" ="SolutionId"
+ "value" = "apollo-cognitve-search-custom-skill"
+}
+
+$parameters = [ordered]@{
+ "SearchText" = "Can not Search"
+}
+
+New-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
```
```output
-Location Name ResourceGroupName
--------- ---- -----------------
- test-resource testRg
+Location Name ResourceGroupName
+-------- ---- -----------------
+ test-resource234 DiagnosticsRp-Ev2AssistId-Public-Dev
```
Creates a SelfHelp Solution for a resource.
\ No newline at end of file
diff --git a/src/SelfHelp/SelfHelp.Autorest/examples/Update-AzSelfHelpSolution.md b/src/SelfHelp/SelfHelp.Autorest/examples/Update-AzSelfHelpSolution.md
index 2836e7b0204c..ecd983cc5d73 100644
--- a/src/SelfHelp/SelfHelp.Autorest/examples/Update-AzSelfHelpSolution.md
+++ b/src/SelfHelp/SelfHelp.Autorest/examples/Update-AzSelfHelpSolution.md
@@ -1,20 +1,19 @@
### Example 1: Update the Solution Resource
```powershell
$parameters = [ordered]@{
- "SearchText" = "Can not RDP"
- "vault_name" = "DemoKeyvault"
+ "SearchText" = "Can not Search"
}
$criteria = [ordered]@{
"name" =" ReplacementKey"
"value" = ""
}
-Update-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
+Update-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
```
```output
-Location Name ResourceGroupName
--------- ---- -----------------
- test-resource testRg
+Location Name ResourceGroupName
+-------- ---- -----------------
+ test-resource234 DiagnosticsRp-Ev2AssistId-Public-Dev
```
Updates the requiredInputs or additional information needed to execute the solution
\ No newline at end of file
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1
index 69b7cd8389b8..e27c94e65f26 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1
@@ -25,7 +25,7 @@ Get the diagnostics using the 'diagnosticsResourceName' you chose while creating
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -34,14 +34,17 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiagnostic
#>
function Get-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -54,7 +57,7 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1
index 7910a1066860..4f4fa428d851 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1
@@ -17,34 +17,28 @@
<#
.Synopsis
Lists the relevant Azure diagnostics and solutions using [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND resourceUri or resourceType. Discovery Solutions is the initial entry point within Help API, which identifies relevant Azure diagnostics and solutions.
-We will do our best to return the most effective solutions based on the type of inputs, in the request URL
Mandatory input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
+
Required Input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
.Description
Lists the relevant Azure diagnostics and solutions using [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND resourceUri or resourceType. Discovery Solutions is the initial entry point within Help API, which identifies relevant Azure diagnostics and solutions.
-We will do our best to return the most effective solutions based on the type of inputs, in the request URL
Mandatory input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
+
Required Input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
.Example
- Get-AzSelfHelpDiscoverySolution -Scope "subscriptions/6bded6d5-a6df-44e1-96d3-bf71f6f5f8ba/resourceGroups/test-rgName/providers/Microsoft.KeyVault/vaults/testKeyVault" -Filter "problemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'"
+Get-AzSelfHelpDiscoverySolution -Filter "ProblemClassificationId eq 'a5db90c3-f147-bce6-83b0-ab5e0aeca1f0'"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionMetadataResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiscoverysolution
#>
function Get-AzSelfHelpDiscoverySolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionMetadataResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
- [System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
- ${Scope},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Query')]
[System.String]
- # 'ProblemClassificationId' or 'Id' is a mandatory filter to get solutions ids.
+ # 'ProblemClassificationId' is a mandatory filter to get solutions ids.
# It also supports optional 'ResourceType' and 'SolutionType' filters.
- # The filter supports only 'and', 'or' and 'eq' operators.
+ # The [$filter](https://learn.microsoft.com/en-us/odata/webapi/first-odata-api#filter) supports only 'and', 'or' and 'eq' operators.
# Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'
${Filter},
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1
new file mode 100644
index 000000000000..8f70816bb6f1
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1
@@ -0,0 +1,198 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.
+.Description
+Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.
+.Example
+$resourceName = "sampleRName"
+
+Get-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsimplifiedsolution
+#>
+function Get-AzSelfHelpSimplifiedSolution {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('SimplifiedSolutionsResourceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # Simplified Solutions Resource Name.
+ ${SResourceName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ ${Scope},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.SelfHelp.private\Get-AzSelfHelpSimplifiedSolution_Get';
+ GetViaIdentity = 'Az.SelfHelp.private\Get-AzSelfHelpSimplifiedSolution_GetViaIdentity';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1
index 1916650e45fe..f9c345981870 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1
@@ -20,12 +20,12 @@ Get the solution using the applicable solutionResourceName while creating the so
.Description
Get the solution using the applicable solutionResourceName while creating the solution.
.Example
-Get-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions//resourceGroups/testRG/providers/Microsoft.KeyVault/testkv/testDB
+Get-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -34,14 +34,17 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolution
#>
function Get-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -54,7 +57,7 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1
new file mode 100644
index 000000000000..d43058c97c3d
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1
@@ -0,0 +1,192 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Finds and Executes a Self Help Solution based on the Solution Id.
+These are static self help content to help users troubleshoot their issues.
+.Description
+Finds and Executes a Self Help Solution based on the Solution Id.
+These are static self help content to help users troubleshoot their issues.
+.Example
+Get-AzSelfHelpSolutionSelfHelp -SolutionId "apollo-48996ff7-002f-47c1-85b2-df138843d5d5"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceSelfHelp
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolutionselfhelp
+#>
+function Get-AzSelfHelpSolutionSelfHelp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceSelfHelp])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # SolutionId is a unique id to identify a solution.
+ # You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ ${SolutionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.SelfHelp.private\Get-AzSelfHelpSolutionSelfHelp_Get';
+ GetViaIdentity = 'Az.SelfHelp.private\Get-AzSelfHelpSolutionSelfHelp_GetViaIdentity';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1
index a93c419f7e64..dff25b201e04 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1
@@ -27,7 +27,7 @@ Get-AzSelfHelpTroubleshooter -Scope "/subscriptions/" -Name "02d59989-f8a
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -36,14 +36,17 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelptroubleshooter
#>
function Get-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -56,7 +59,7 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1
index c13fe8f1fe4d..858cbb1271b1 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1
@@ -32,7 +32,7 @@ Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ICheckNameAvailabilityR
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ICheckNameAvailabilityResponse
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ICheckNameAvailabilityResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -45,21 +45,24 @@ CHECKNAMEAVAILABILITYREQUEST : The check availabi
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpchecknameavailability
#>
function Invoke-AzSelfHelpCheckNameAvailability {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ICheckNameAvailabilityResponse])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ICheckNameAvailabilityResponse])]
[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Post', Mandatory)]
[Parameter(ParameterSetName='PostExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1
index eb66d5d18547..6a1093de1e09 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1
@@ -31,7 +31,7 @@ $continueRequest = [ordered]@{
Invoke-AzSelfHelpContinueTroubleshooter -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -TroubleshooterName "02d59989-f8a9-4b69-9919-1ef51df4eff6" -ContinueRequestBody $continueRequest
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IContinueRequestBody
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IContinueRequestBody
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
@@ -44,20 +44,23 @@ To create the parameters described below, construct a hash table containing the
CONTINUEREQUESTBODY : Troubleshooter ContinueRequest body.
[Response ]:
[QuestionId ]: id of the question.
- [QuestionType ]: Text Input. Will be a single line input.
+ [QuestionType ]: Type of Question
[Response ]: Response key for SingleInput. For Multi-line test/open ended question it is free form text
[StepId ]: Unique id of the result.
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
RESPONSE : .
[QuestionId ]: id of the question.
- [QuestionType ]: Text Input. Will be a single line input.
+ [QuestionType ]: Type of Question
[Response ]: Response key for SingleInput. For Multi-line test/open ended question it is free form text
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpcontinuetroubleshooter
@@ -70,7 +73,7 @@ param(
[Parameter(ParameterSetName='ContinueExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='Continue', Mandatory)]
@@ -91,7 +94,7 @@ param(
[Parameter(ParameterSetName='Continue', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='ContinueViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IContinueRequestBody]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IContinueRequestBody]
# Troubleshooter ContinueRequest body.
# To construct, see NOTES section for CONTINUEREQUESTBODY properties and create a hash table.
${ContinueRequestBody},
@@ -100,7 +103,7 @@ param(
[Parameter(ParameterSetName='ContinueViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResponse[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResponse[]]
# .
# To construct, see NOTES section for RESPONSE properties and create a hash table.
${Response},
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1
new file mode 100644
index 000000000000..782b65b93339
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1
@@ -0,0 +1,249 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Solution discovery using natural language processing.
+.Description
+Solution discovery using natural language processing.
+.Example
+Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope -SubscriptionId "6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -IssueSummary "Billing Issues"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCOVERSOLUTIONREQUEST : Discover NLP request.
+ [AdditionalContext ]: Additional information in the form of a string.
+ [IssueSummary ]: Describe the issue with the affected resource.
+ [ResourceId ]: Provide resourceId of affected resource
+ [ServiceId ]: Service Classification id for the resource. You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpdiscoverysolutionnlpsubscriptionscope
+#>
+function Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource])]
+[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Post')]
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='PostViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Post', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest]
+ # Discover NLP request.
+ # To construct, see NOTES section for DISCOVERSOLUTIONREQUEST properties and create a hash table.
+ ${DiscoverSolutionRequest},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Parameter(ParameterSetName='PostViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Additional information in the form of a string.
+ ${AdditionalContext},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Parameter(ParameterSetName='PostViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Describe the issue with the affected resource.
+ ${IssueSummary},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Parameter(ParameterSetName='PostViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Provide resourceId of affected resource
+ ${ResourceId},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Parameter(ParameterSetName='PostViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Service Classification id for the resource.
+ # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/listtabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+ ${ServiceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Post = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_Post';
+ PostExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostExpanded';
+ PostViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaIdentity';
+ PostViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaIdentityExpanded';
+ }
+ if (('Post', 'PostExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1
new file mode 100644
index 000000000000..8c6b809ce22c
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1
@@ -0,0 +1,204 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Solution discovery using natural language processing.
+.Description
+Solution discovery using natural language processing.
+.Example
+Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope -IssueSummary "Billing Issues"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCOVERSOLUTIONREQUEST : Discover NLP request.
+ [AdditionalContext ]: Additional information in the form of a string.
+ [IssueSummary ]: Describe the issue with the affected resource.
+ [ResourceId ]: Provide resourceId of affected resource
+ [ServiceId ]: Service Classification id for the resource. You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpdiscoverysolutionnlptenantscope
+#>
+function Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource])]
+[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Post', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest]
+ # Discover NLP request.
+ # To construct, see NOTES section for DISCOVERSOLUTIONREQUEST properties and create a hash table.
+ ${DiscoverSolutionRequest},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Additional information in the form of a string.
+ ${AdditionalContext},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Describe the issue with the affected resource.
+ ${IssueSummary},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Provide resourceId of affected resource
+ ${ResourceId},
+
+ [Parameter(ParameterSetName='PostExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Service Classification id for the resource.
+ # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/listtabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+ ${ServiceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Post = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_Post';
+ PostExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_PostExpanded';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1
new file mode 100644
index 000000000000..35e094517f49
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1
@@ -0,0 +1,232 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Warm up the solution resource by preloading asynchronous diagnostics results into cache
+.Description
+Warm up the solution resource by preloading asynchronous diagnostics results into cache
+.Example
+$resourceName = "sampleRName"
+$parameters = [ordered]@{
+ "ProductId" = "13491"
+}
+Invoke-AzSelfHelpWarmSolutionUp -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SolutionResourceName $resourceName -Parameter $parameters
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBody
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+
+SOLUTIONWARMUPREQUESTBODY : Solution WarmUpRequest body
+ [Parameter ]: Dictionary of
+ [(Any) ]: This indicates any property can be added to this object.
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpwarmsolutionup
+#>
+function Invoke-AzSelfHelpWarmSolutionUp {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='WarmExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Warm', Mandatory)]
+ [Parameter(ParameterSetName='WarmExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ ${Scope},
+
+ [Parameter(ParameterSetName='Warm', Mandatory)]
+ [Parameter(ParameterSetName='WarmExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # Solution resource Name.
+ ${SolutionResourceName},
+
+ [Parameter(ParameterSetName='WarmViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='WarmViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Warm', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='WarmViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBody]
+ # Solution WarmUpRequest body
+ # To construct, see NOTES section for SOLUTIONWARMUPREQUESTBODY properties and create a hash table.
+ ${SolutionWarmUpRequestBody},
+
+ [Parameter(ParameterSetName='WarmExpanded')]
+ [Parameter(ParameterSetName='WarmViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBodyParameters]))]
+ [System.Collections.Hashtable]
+ # Dictionary of
+ ${Parameter},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Warm = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_Warm';
+ WarmExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmExpanded';
+ WarmViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaIdentity';
+ WarmViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1
index f7c493e3c839..85467964f833 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1
@@ -17,14 +17,10 @@
<#
.Synopsis
Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
- Diagnostics tells you precisely the root cause of the issue and the steps to address it.
-You can get diagnostics once you discover the relevant solution for your Azure issue.
-
Note: requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
+ Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Description
Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
- Diagnostics tells you precisely the root cause of the issue and the steps to address it.
-You can get diagnostics once you discover the relevant solution for your Azure issue.
-
Note: requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
+ Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Example
$insightsToInvoke = [ordered]@{
"solutionId" = "Demo2InsightV2"
@@ -32,7 +28,7 @@ $insightsToInvoke = [ordered]@{
New-AzSelfHelpDiagnostic -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aravind-test-resources/providers/Microsoft.KeyVault/vaults/ab-tests-kv-an" -SResourceName ab-test-973 -Insight $insightsToInvoke
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +42,7 @@ INSIGHT : SolutionIds that are needed to be invoked.
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpdiagnostic
#>
function New-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -59,20 +55,20 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResourcePropertiesGlobalParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters]))]
[System.Collections.Hashtable]
- # Global parameters that can be passed to all solutionIds.
+ # Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results
${GlobalParameter},
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticInvocation[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[]]
# SolutionIds that are needed to be invoked.
# To construct, see NOTES section for INSIGHT properties and create a hash table.
${Insight},
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1
new file mode 100644
index 000000000000..4d7fc14a720b
--- /dev/null
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1
@@ -0,0 +1,211 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
+
Note: 1.
+‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
+
+.Description
+Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
+
Note: 1.
+‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
+
+.Example
+$resourceName = "sampleRName"
+$solutionId = "9004345-7759"
+$parameters = [ordered]@{
+
+ "SearchText" = "Billing"
+}
+New-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName -SolutionId $solutionId -Parameter $parameters
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
+.Link
+https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsimplifiedsolution
+#>
+function New-AzSelfHelpSimplifiedSolution {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SimplifiedSolutionsResourceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # Simplified Solutions Resource Name.
+ ${SResourceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [System.String]
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ ${Scope},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesParameters]))]
+ [System.Collections.Hashtable]
+ # Client input parameters to run Simplified Solutions
+ ${Parameter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Solution Id to identify single Simplified Solution.
+ ${SolutionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateExpanded';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
index faf768c51894..f0bada7812b6 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
@@ -16,8 +16,10 @@
<#
.Synopsis
-Creates a solution for the specific Azure resource or subscription using the triggering criteria ‘solutionId and requiredInputs’ from discovery solutions. Solutions are a rich, insightful and a centralized self help experience that brings all the relevant content to troubleshoot an Azure issue into a unified experience.
-Solutions include the following components : Text, Diagnostics , Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with capabilities to support new solutions types in the future.
+Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+ Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
+These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
+All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
Each solution type may require one or more ‘requiredParameters’ that are required to execute the individual solution component.
In the absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you might see an empty response.
Note: 1.
@@ -26,8 +28,10 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol
‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics 3.
‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters
.Description
-Creates a solution for the specific Azure resource or subscription using the triggering criteria ‘solutionId and requiredInputs’ from discovery solutions. Solutions are a rich, insightful and a centralized self help experience that brings all the relevant content to troubleshoot an Azure issue into a unified experience.
-Solutions include the following components : Text, Diagnostics , Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with capabilities to support new solutions types in the future.
+Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+ Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
+These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
+All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
Each solution type may require one or more ‘requiredParameters’ that are required to execute the individual solution component.
In the absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you might see an empty response.
Note: 1.
@@ -36,123 +40,24 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol
‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics 3.
‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters
.Example
-$criteria = [ordered]@{
- "name" ="SolutionId"
- "value" = "keyvault-lostdeletedkeys-apollo-solution"
-}
-$parameters = [ordered]@{
- "SearchText" = "Can not RDP"
- "vault_name" = "DemoKeyvault"
-}
-New-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions//resourceGroups/testRG/providers/Microsoft.KeyVault/kv/testDB -Parameter $parameters -TriggerCriterion $criteria
+$criteria = [ordered]@{
+ "name" ="SolutionId"
+ "value" = "apollo-cognitve-search-custom-skill"
+}
+
+$parameters = [ordered]@{
+ "SearchText" = "Can not Search"
+}
+
+New-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-REPLACEMENTMAPDIAGNOSTIC : Solution diagnostics results.
- [Insight ]: Diagnostic insights
- [Id ]: Article id.
- [ImportanceLevel ]: Importance level of the insight.
- [Result ]: Detailed result content.
- [Title ]: This insight's title.
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [RequiredParameter ]: Required parameters of this item
- [SolutionId ]: Solution Id to identify single Solutions Diagnostic
- [Status ]: Denotes the status of the diagnostic resource.
- [StatusDetail ]: Details of the status
-
-REPLACEMENTMAPMETRICSBASEDCHART : Solution metrics based charts
- [AggregationType ]: Allowed values are Sum, Avg, Count, Min, Max. Default is Sum
- [FilterGroupFilter ]: List of filters
- [Name ]: Filter name
- [Operator ]: Filter operator
- [Value ]: Filter values
- [Name ]: Chart name
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [TimeSpanDuration ]: Time span duration
- [Title ]: Chart title
-
-REPLACEMENTMAPTROUBLESHOOTER : Solutions Troubleshooters
- [SolutionId ]: Solution Id to identify single Solutions Troubleshooter
- [Summary ]: Troubleshooter summary
- [Title ]: Troubleshooter title
-
-REPLACEMENTMAPVIDEO : Video solutions, which have the power to engage the customer by stimulating their senses
- [Src ]: Link to the video
- [Title ]: Title of the video
- [ReplacementKey ]: Place holder used in HTML Content replace control with the insight content
-
-REPLACEMENTMAPVIDEOGROUP : Group of Videos
- [ReplacementKey ]: Place holder used in HTML Content replace control with the insight content
- [Video ]: List of videos will be shown to customers
- [Src ]: Link to the video
- [Title ]: Title of the video
-
-REPLACEMENTMAPWEBRESULT : Solution AzureKB results
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [SearchResult ]: AzureKB search results
- [Confidence ]: Confidence of the search result.
- [Content ]: Content of the search result.
- [Link ]: Link to the document.
- [Rank ]: rank of the search result
- [ResultType ]: Result type of the search result.
- [SolutionId ]: Unique id of the result.
- [Source ]: Source of the search result.
- [Title ]: Title of the search result.
-
-SECTION : List of section object.
- [Content ]: Solution sections content.
- [ReplacementMapDiagnostic ]: Solution diagnostics results.
- [Insight ]: Diagnostic insights
- [Id ]: Article id.
- [ImportanceLevel ]: Importance level of the insight.
- [Result ]: Detailed result content.
- [Title ]: This insight's title.
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [RequiredParameter ]: Required parameters of this item
- [SolutionId ]: Solution Id to identify single Solutions Diagnostic
- [Status ]: Denotes the status of the diagnostic resource.
- [StatusDetail ]: Details of the status
- [ReplacementMapMetricsBasedChart ]: Solution metrics based charts
- [AggregationType ]: Allowed values are Sum, Avg, Count, Min, Max. Default is Sum
- [FilterGroupFilter ]: List of filters
- [Name ]: Filter name
- [Operator ]: Filter operator
- [Value ]: Filter values
- [Name ]: Chart name
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [TimeSpanDuration ]: Time span duration
- [Title ]: Chart title
- [ReplacementMapTroubleshooter ]: Solutions Troubleshooters
- [SolutionId ]: Solution Id to identify single Solutions Troubleshooter
- [Summary ]: Troubleshooter summary
- [Title ]: Troubleshooter title
- [ReplacementMapVideo ]: Video solutions, which have the power to engage the customer by stimulating their senses
- [Src ]: Link to the video
- [Title ]: Title of the video
- [ReplacementKey ]: Place holder used in HTML Content replace control with the insight content
- [ReplacementMapVideoGroup ]: Group of Videos
- [ReplacementKey ]: Place holder used in HTML Content replace control with the insight content
- [Video ]: List of videos will be shown to customers
- [Src ]: Link to the video
- [Title ]: Title of the video
- [ReplacementMapWebResult ]: Solution AzureKB results
- [ReplacementKey ]: Place holder used in HTML Content replace control with the content
- [SearchResult ]: AzureKB search results
- [Confidence ]: Confidence of the search result.
- [Content ]: Content of the search result.
- [Link ]: Link to the document.
- [Rank ]: rank of the search result
- [ResultType ]: Result type of the search result.
- [SolutionId ]: Unique id of the result.
- [Source ]: Source of the search result.
- [Title ]: Title of the search result.
- [Title ]: Solution sections title.
-
TRIGGERCRITERION : Solution request trigger criteria
[Name ]: Trigger criterion name.
[Value ]: Trigger criterion value.
@@ -160,7 +65,7 @@ TRIGGERCRITERION : Solution request trigger criteria
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsolution
#>
function New-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -173,101 +78,20 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [System.String]
- # The HTML content that needs to be rendered and shown to customer.
- ${Content},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Solution
${Parameter},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState])]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState]
- # Status of solution provisioning.
- ${ProvisioningState},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionsDiagnostic[]]
- # Solution diagnostics results.
- # To construct, see NOTES section for REPLACEMENTMAPDIAGNOSTIC properties and create a hash table.
- ${ReplacementMapDiagnostic},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IMetricsBasedChart[]]
- # Solution metrics based charts
- # To construct, see NOTES section for REPLACEMENTMAPMETRICSBASEDCHART properties and create a hash table.
- ${ReplacementMapMetricsBasedChart},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionsTroubleshooters[]]
- # Solutions Troubleshooters
- # To construct, see NOTES section for REPLACEMENTMAPTROUBLESHOOTER properties and create a hash table.
- ${ReplacementMapTroubleshooter},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IVideo[]]
- # Video solutions, which have the power to engage the customer by stimulating their senses
- # To construct, see NOTES section for REPLACEMENTMAPVIDEO properties and create a hash table.
- ${ReplacementMapVideo},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IVideoGroup[]]
- # Group of Videos
- # To construct, see NOTES section for REPLACEMENTMAPVIDEOGROUP properties and create a hash table.
- ${ReplacementMapVideoGroup},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IWebResult[]]
- # Solution AzureKB results
- # To construct, see NOTES section for REPLACEMENTMAPWEBRESULT properties and create a hash table.
- ${ReplacementMapWebResult},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISection[]]
- # List of section object.
- # To construct, see NOTES section for SECTION properties and create a hash table.
- ${Section},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [System.String]
- # Solution Id to identify single solution.
- ${SolutionId},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [System.String]
- # The title.
- ${Title},
-
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITriggerCriterion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]]
# Solution request trigger criteria
# To construct, see NOTES section for TRIGGERCRITERION properties and create a hash table.
${TriggerCriterion},
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
index 7bb700f80489..4e283c4ad623 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
@@ -17,18 +17,16 @@
<#
.Synopsis
Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
- Troubleshooters are step-by-step interactive guidance that scope the problem by collecting additional inputs from you in each stage while troubleshooting an Azure issue.
-You will be guided down decision tree style workflow and the best possible solution will be presented at the end of the workflow.
- Create API creates the Troubleshooter API using ‘parameters’ and ‘solutionId’ After creating the Troubleshooter instance, the following APIs can be used: CONTINUE API: to move to the next step in the flow GET API: to identify the next step after executing the CONTINUE API.
-
Note: ‘requiredParameters’ from solutions response must be passed via ‘properties.
-parameters’ in the request body of Troubleshooters API.
+ Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
+Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
+These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
+Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections.
.Description
Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
- Troubleshooters are step-by-step interactive guidance that scope the problem by collecting additional inputs from you in each stage while troubleshooting an Azure issue.
-You will be guided down decision tree style workflow and the best possible solution will be presented at the end of the workflow.
- Create API creates the Troubleshooter API using ‘parameters’ and ‘solutionId’ After creating the Troubleshooter instance, the following APIs can be used: CONTINUE API: to move to the next step in the flow GET API: to identify the next step after executing the CONTINUE API.
-
Note: ‘requiredParameters’ from solutions response must be passed via ‘properties.
-parameters’ in the request body of Troubleshooters API.
+ Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
+Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
+These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
+Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections.
.Example
$parameters = [ordered]@{
"addParam1"= "/subscriptions/02d59989-f8a9-4b69-9919-1ef51df4eff6"
@@ -38,12 +36,12 @@ New-AzSelfHelpTroubleshooter -Scope "/subscriptions/6bded6d5-a
6af-43e1-96d3-bf71f6f5f8ba" -Name "12d59989-f8a9-4b69-9919-1ef51df4eff6" -Parameter $parameters -SolutionId "e104dbdf-9e14-4c9f-bc78-21ac90382231"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelptroubleshooter
#>
function New-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -56,12 +54,12 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterInstancePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterInstancePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Troubleshooter Resource
${Parameter},
diff --git a/src/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
index ee503639b29a..4454294a7ee2 100644
--- a/src/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -25,7 +25,7 @@ Get the diagnostics using the 'diagnosticsResourceName' you chose while creating
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -34,14 +34,17 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiagnostic
#>
function Get-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -54,7 +57,7 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -195,34 +198,28 @@ end {
<#
.Synopsis
Lists the relevant Azure diagnostics and solutions using [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND resourceUri or resourceType. Discovery Solutions is the initial entry point within Help API, which identifies relevant Azure diagnostics and solutions.
-We will do our best to return the most effective solutions based on the type of inputs, in the request URL
Mandatory input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
+
Required Input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
.Description
Lists the relevant Azure diagnostics and solutions using [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND resourceUri or resourceType. Discovery Solutions is the initial entry point within Help API, which identifies relevant Azure diagnostics and solutions.
-We will do our best to return the most effective solutions based on the type of inputs, in the request URL
Mandatory input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
+
Required Input : problemClassificationId (Use the [problemClassification API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) Optional input: resourceUri OR resource Type
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics and Solutions API.
.Example
- Get-AzSelfHelpDiscoverySolution -Scope "subscriptions/6bded6d5-a6df-44e1-96d3-bf71f6f5f8ba/resourceGroups/test-rgName/providers/Microsoft.KeyVault/vaults/testKeyVault" -Filter "problemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'"
+Get-AzSelfHelpDiscoverySolution -Filter "ProblemClassificationId eq 'a5db90c3-f147-bce6-83b0-ab5e0aeca1f0'"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionMetadataResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiscoverysolution
#>
function Get-AzSelfHelpDiscoverySolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionMetadataResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
- [System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
- ${Scope},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Query')]
[System.String]
- # 'ProblemClassificationId' or 'Id' is a mandatory filter to get solutions ids.
+ # 'ProblemClassificationId' is a mandatory filter to get solutions ids.
# It also supports optional 'ResourceType' and 'SolutionType' filters.
- # The filter supports only 'and', 'or' and 'eq' operators.
+ # The [$filter](https://learn.microsoft.com/en-us/odata/webapi/first-odata-api#filter) supports only 'and', 'or' and 'eq' operators.
# Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'
${Filter},
@@ -361,16 +358,18 @@ end {
<#
.Synopsis
-Get the solution using the applicable solutionResourceName while creating the solution.
+Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.
.Description
-Get the solution using the applicable solutionResourceName while creating the solution.
+Get the simplified Solutions using the applicable solutionResourceName while creating the simplified Solutions.
.Example
-Get-AzSelfHelpSolution -ResourceName test-resource -Scope /subscriptions//resourceGroups/testRG/providers/Microsoft.KeyVault/testkv/testDB
+$resourceName = "sampleRName"
+
+Get-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -379,27 +378,30 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[TroubleshooterName ]: Troubleshooter resource Name.
.Link
-https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolution
+https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsimplifiedsolution
#>
-function Get-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ISolutionResource])]
+function Get-AzSelfHelpSimplifiedSolution {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('SolutionResourceName')]
+ [Alias('SimplifiedSolutionsResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # Solution resource Name.
- ${ResourceName},
+ # Simplified Solutions Resource Name.
+ ${SResourceName},
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
- # This is an extension resource provider and only resource level extension is supported at the moment.
+ # scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -484,8 +486,8 @@ begin {
}
$mapping = @{
- Get = 'Az.SelfHelp.private\Get-AzSelfHelpSolution_Get';
- GetViaIdentity = 'Az.SelfHelp.private\Get-AzSelfHelpSolution_GetViaIdentity';
+ Get = 'Az.SelfHelp.private\Get-AzSelfHelpSimplifiedSolution_Get';
+ GetViaIdentity = 'Az.SelfHelp.private\Get-AzSelfHelpSimplifiedSolution_GetViaIdentity';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -539,18 +541,18 @@ end {
<#
.Synopsis
-Gets troubleshooter instance result which includes the step status/result of the troubleshooter resource name that is being executed. Get API is used to retrieve the result of a Troubleshooter instance, which includes the status and result of each step in the Troubleshooter workflow.
-This API requires the Troubleshooter resource name that was created using the Create API.
+Finds and Executes a Self Help Solution based on the Solution Id.
+These are static self help content to help users troubleshoot their issues.
.Description
-Gets troubleshooter instance result which includes the step status/result of the troubleshooter resource name that is being executed. Get API is used to retrieve the result of a Troubleshooter instance, which includes the status and result of each step in the Troubleshooter workflow.
-This API requires the Troubleshooter resource name that was created using the Create API.
+Finds and Executes a Self Help Solution based on the Solution Id.
+These are static self help content to help users troubleshoot their issues.
.Example
-Get-AzSelfHelpTroubleshooter -Scope "/subscriptions/" -Name "02d59989-f8a9-4b69-9919-1ef51df4eff6"
+Get-AzSelfHelpSolutionSelfHelp -SolutionId "apollo-48996ff7-002f-47c1-85b2-df138843d5d5"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20230901Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceSelfHelp
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -559,27 +561,205 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[DiagnosticsResourceName ]: Unique resource name for insight resources
[Id ]: Resource identity path
- [Scope ]: This is an extension resource provider and only resource level extension is supported at the moment.
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
[SolutionResourceName