From 1b158593853f38880e1c7bbfab7bb495a5574560 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Thu, 11 Jan 2024 14:14:58 -0500 Subject: [PATCH 01/27] correct readme to include file workspace create --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 17 ++- .../Support.Autorest/docs/Az.Support.md | 6 + .../docs/New-AzSupportFileWorkspace.md | 138 ++++++++++++++++++ ...w-AzSupportFileWorkspacesNoSubscription.md | 123 ++++++++++++++++ .../examples/New-AzSupportFileWorkspace.md | 22 +++ ...w-AzSupportFileWorkspacesNoSubscription.md | 22 +++ .../test/New-AzSupportFileWorkspace.Tests.ps1 | 21 +++ ...portFileWorkspacesNoSubscription.Tests.ps1 | 21 +++ 9 files changed, 364 insertions(+), 8 deletions(-) create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 5e0d3afb0dbb..b5235182452b 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFilesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index c645f58b7f61..d6fc9070f66e 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -60,39 +60,42 @@ directive: set: format-table: properties: - # - Id - DisplayName - Name - SecondaryConsentEnabled # Do we need this? - # - Type - where: model-name: Service set: format-table: properties: - # - Id - DisplayName - Name - ResourceType # Do we need this? - # - Type - where: model-name: FileDetails set: format-table: properties: - # - Id - Name - CreatedOn - ChunkSize - FileSize - NumberOfChunks - # - Type # Following are common directives which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required # Following two directives are v4 specific + # - where: + # verb: New + # subject: AzSupportFileWorkspace + # remove: false + # - where: + # verb: New + # subject: AzSupportFileWorkspacesNoSubscription + # remove: false - where: - variant: ^(Create|Update)(?!.*?Expanded) + variant: ^(Create|Update)(?!.*?Expanded|JsonFilePath|JsonString) + subject: ^(?!FileWorkspace|FileWorkspacesNoSubscription$).* remove: true - where: variant: ^CreateViaIdentity.*$ diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 3156dcf4985f..fba6141efd89 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -80,6 +80,12 @@ Creates a new file under a workspace for the specified subscription. ### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) Creates a new file under a workspace. +### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) +Creates a new file workspace for the specified subscription. + +### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md) +Creates a new file workspace. + ### [New-AzSupportTicket](New-AzSupportTicket.md) Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md new file mode 100644 index 000000000000..1f1da952b27e --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md @@ -0,0 +1,138 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspace +schema: 2.0.0 +--- + +# New-AzSupportFileWorkspace + +## SYNOPSIS +Creates a new file workspace for the specified subscription. + +## SYNTAX + +``` +New-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file workspace for the specified subscription. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileWorkspaceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure subscription Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..cf44505a15fb --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,123 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription +schema: 2.0.0 +--- + +# New-AzSupportFileWorkspacesNoSubscription + +## SYNOPSIS +Creates a new file workspace. + +## SYNTAX + +``` +New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 new file mode 100644 index 000000000000..ed4704fc367b --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileWorkspace')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSupportFileWorkspace.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzSupportFileWorkspace' { + It 'Create' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 new file mode 100644 index 000000000000..ff6ee48fcc65 --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileWorkspacesNoSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSupportFileWorkspacesNoSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzSupportFileWorkspacesNoSubscription' { + It 'Create' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From c2e620cbe5c453a248f25c3886c281f8c873c7ff Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 12 Jan 2024 17:14:10 -0500 Subject: [PATCH 02/27] add custom cmdlet for creating and uploading the file --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 4 + .../custom/New-AzSupportFileAndUpload.ps1 | 225 ++++++++++++++++++ .../Support.Autorest/docs/Az.Support.md | 4 +- ...tFile.md => New-AzSupportFileAndUpload.md} | 54 ++--- ...tFile.md => New-AzSupportFileAndUpload.md} | 0 .../test/New-AzSupportFileAndUpload.Tests.ps1 | 21 ++ 7 files changed, 267 insertions(+), 43 deletions(-) create mode 100644 src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 rename src/Support/Support.Autorest/docs/{New-AzSupportFile.md => New-AzSupportFileAndUpload.md} (76%) rename src/Support/Support.Autorest/examples/{New-AzSupportFile.md => New-AzSupportFileAndUpload.md} (100%) create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index b5235182452b..f1642bb6e808 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index d6fc9070f66e..016f0e6ba20f 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -81,6 +81,10 @@ directive: - ChunkSize - FileSize - NumberOfChunks + - where: + verb: New + subject: File + hide: true # Following are common directives which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 new file mode 100644 index 000000000000..1119a2940ca6 --- /dev/null +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -0,0 +1,225 @@ + +# ---------------------------------------------------------------------------------- +# 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 and uploads a new file under a workspace for the specified subscription. +.Description +Creates and uploads a new file under a workspace for the specified subscription. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails +.Link +https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile +#> +function New-AzSupportFileAndUpload { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FileName')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [System.String] + # File name. + ${Name}, + + [Parameter(Mandatory)] + [Alias('FileWorkspaceName')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [System.String] + # File workspace name. + ${WorkspaceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Azure subscription Id. + ${SubscriptionId}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Size of each chunk + # ${ChunkSize}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Size of the file to be uploaded + # ${FileSize}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Number of chunks to be uploaded + # ${NumberOfChunk}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + [System.String] + # Path of the file to be uploaded + ${FilePath}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.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.Support.private\New-AzSupportFile_CreateExpanded'; +# } +# if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { +# $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id +# } +# $cmdInfo = Get-Command -Name $mapping[$parameterSet] +# [Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ +# [Microsoft.Azure.PowerShell.Cmdlets.Support.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 { + Write-Output "file path: " $FilePath + $FileContentBytes = Get-Content -Path $FilePath -Raw + $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) + Write-Output "Length of byte array: " $FileContentByteArray.Length + $FileContent = [convert]::ToBase64String($FileContentByteArray) + # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) + Write-Output "contents of file: " $FileContent + try{ + New-AzSupportFile -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileContentByteArray.Length -ChunkSize $FileContentByteArray.Length -NumberOfChunk 1 + } + catch{ + throw + } + $chunkIndex = 0 + Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + + # 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.Support.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/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index fba6141efd89..4d6c76f44183 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -74,8 +74,8 @@ Adds a new customer communication to an Azure support ticket. ### [New-AzSupportCommunicationsNoSubscription](New-AzSupportCommunicationsNoSubscription.md) Adds a new customer communication to an Azure support ticket. -### [New-AzSupportFile](New-AzSupportFile.md) -Creates a new file under a workspace for the specified subscription. +### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) +Creates and uploads a new file under a workspace for the specified subscription. ### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) Creates a new file under a workspace. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFile.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md similarity index 76% rename from src/Support/Support.Autorest/docs/New-AzSupportFile.md rename to src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md index 4d1bfa961b78..80e62722b876 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md @@ -5,21 +5,20 @@ online version: https://learn.microsoft.com/powershell/module/az.support/new-azs schema: 2.0.0 --- -# New-AzSupportFile +# New-AzSupportFileAndUpload ## SYNOPSIS -Creates a new file under a workspace for the specified subscription. +Creates and uploads a new file under a workspace for the specified subscription. ## SYNTAX ``` -New-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +New-AzSupportFileAndUpload -Name -WorkspaceName -FilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Creates a new file under a workspace for the specified subscription. +Creates and uploads a new file under a workspace for the specified subscription. ## EXAMPLES @@ -47,21 +46,6 @@ Creates a new file under a workspace for the specified subscription. ## PARAMETERS -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -78,15 +62,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FileSize -Size of the file to be uploaded +### -FilePath +[Parameter(Mandatory)] +[Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] +[System.Single] +# Number of chunks to be uploaded +${NumberOfChunk}, +Path of the file to be uploaded ```yaml -Type: System.Single +Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -108,21 +97,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -SubscriptionId Azure subscription Id. diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFile.md b/src/Support/Support.Autorest/examples/New-AzSupportFileAndUpload.md similarity index 100% rename from src/Support/Support.Autorest/examples/New-AzSupportFile.md rename to src/Support/Support.Autorest/examples/New-AzSupportFileAndUpload.md diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 new file mode 100644 index 000000000000..99fd042ba94c --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUpload')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSupportFileAndUpload.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzSupportFileAndUpload' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From e2cc76e70ba494307d0176418b4c8f944b3b7720 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 17 Jan 2024 16:11:36 -0500 Subject: [PATCH 03/27] chunking logic for larger files --- .../custom/New-AzSupportFileAndUpload.ps1 | 49 +++++++++++++++---- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 1119a2940ca6..d88a6cf309b5 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -176,20 +176,49 @@ param( process { Write-Output "file path: " $FilePath + $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB + $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) - Write-Output "Length of byte array: " $FileContentByteArray.Length - $FileContent = [convert]::ToBase64String($FileContentByteArray) - # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) - Write-Output "contents of file: " $FileContent - try{ - New-AzSupportFile -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileContentByteArray.Length -ChunkSize $FileContentByteArray.Length -NumberOfChunk 1 - } - catch{ - throw + $FileSize = $FileContentByteArray.Length + $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} + Write-Output "Length of byte array: " $FileSize + Write-Output "Max chunk size: " $MaxChunkSize + Write-Output "Chunk Size: " $ChunkSize + $NumberOfChunks = [int][Math]::Floor($FileSize / $ChunkSize); + If($FileSize % $ChunkSize -gt 0) + { + $NumberOfChunks++ } + Write-Output "Number of chunks: " $NumberOfChunks + + # try{ + New-AzSupportFile -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + # } + # catch{ + # Write-Host $_ + # throw + # } + + Write-Output "successfully created file" $chunkIndex = 0 - Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + $startIndex = 0 + $endIndex = $ChunkSize - 1 + + # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) + + while($chunkIndex -lt $NumberOfChunks){ + Write-Output "chunk index: " + $chunkIndex + Write-Output "start index: " + $startIndex + Write-Output "end index: " + $endIndex + $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) + #Write-Output "contents of file: " $FileContent + Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + $chunkIndex++ + $startIndex = $endIndex + 1 + $endIndex = $FileSize - 1 + } + # try { # $steppablePipeline.Process($_) From 07ace3d444a34cb93a063788f5bbe2c64fc6fa8b Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 19 Jan 2024 10:55:33 -0500 Subject: [PATCH 04/27] add error for custom cmdlet when file too big --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 89 ++++++-- .../custom/New-AzSupportFileAndUpload.ps1 | 16 +- .../Support.Autorest/docs/Az.Support.md | 3 + .../docs/New-AzSupportFile.md | 199 ++++++++++++++++++ .../examples/New-AzSupportFile.md | 22 ++ ...et-AzSupportTicketChatTranscript.Tests.ps1 | 21 ++ ...Get-AzSupportTicketCommunication.Tests.ps1 | 21 ++ 8 files changed, 359 insertions(+), 14 deletions(-) create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFile.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFile.md create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportTicketChatTranscript.Tests.ps1 create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportTicketCommunication.Tests.ps1 diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index f1642bb6e808..a9bec25bd711 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 016f0e6ba20f..0f9b56d3c7bf 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -55,6 +55,79 @@ subject-prefix: $(service-name) # nested-object-to-string: true directive: + # Remove the default value of subscriptionId + # - from: source-file-csharp + # where: $ + # transform: $ = $.replace(' [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(\n Name = @"",\n Description =@"",\n Script = @"(Get-AzContext).Subscription.Id",\n SetCondition = @"")]\n', '') + # Rename the operation ids of NoSubscription to make them can be combined automatically + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/checkNameAvailability"].post' + # transform: > + # $["operationId"] = "SupportTickets_CheckNameAvailabilityWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets"].get' + # transform: > + # $["operationId"] = "SupportTickets_ListWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].get' + # transform: > + # $["operationId"] = "SupportTickets_GetWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].patch' + # transform: > + # $["operationId"] = "SupportTickets_UpdateWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].put' + # transform: > + # $["operationId"] = "SupportTickets_CreateWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability"].post' + # transform: > + # $["operationId"] = "Communications_CheckNameAvailabilityWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get' + # transform: > + # $["operationId"] = "SupportTicketCommunications_ListWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].get' + # transform: > + # $["operationId"] = "Communications_GetWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].put' + # transform: > + # $["operationId"] = "Communications_CreateWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get' + # transform: > + # $["operationId"] = "SupportTicketChatTranscripts_ListWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}"].get' + # transform: > + # $["operationId"] = "ChatTranscripts_GetWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].get' + # transform: > + # $["operationId"] = "FileWorkspaces_GetWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].put' + # transform: > + # $["operationId"] = "FileWorkspaces_CreateWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files"].get' + # transform: > + # $["operationId"] = "Files_ListWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].get' + # transform: > + # $["operationId"] = "Files_GetWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].put' + # transform: > + # $["operationId"] = "Files_CreateWithNoSubscriptionId"; + # - from: swagger-document + # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload"].post' + # transform: > + # $["operationId"] = "Files_UploadWithNoSubscriptionId"; - where: model-name: ProblemClassification set: @@ -81,22 +154,14 @@ directive: - ChunkSize - FileSize - NumberOfChunks - - where: - verb: New - subject: File - hide: true + #- where: + #verb: New + #subject: File + #hide: true # Following are common directives which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required # Following two directives are v4 specific - # - where: - # verb: New - # subject: AzSupportFileWorkspace - # remove: false - # - where: - # verb: New - # subject: AzSupportFileWorkspacesNoSubscription - # remove: false - where: variant: ^(Create|Update)(?!.*?Expanded|JsonFilePath|JsonString) subject: ^(?!FileWorkspace|FileWorkspacesNoSubscription$).* diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index d88a6cf309b5..6a8c2929f522 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -181,6 +181,9 @@ process { $FileContentBytes = Get-Content -Path $FilePath -Raw $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length + if($FileSize -gt $MaxFileSize){ + throw "File size is greater than the maximum file size of 5 MB" + } $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} Write-Output "Length of byte array: " $FileSize Write-Output "Max chunk size: " $MaxChunkSize @@ -193,7 +196,13 @@ process { Write-Output "Number of chunks: " $NumberOfChunks # try{ + if($SubscriptionId) + { + New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + } + else{ New-AzSupportFile -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + } # } # catch{ # Write-Host $_ @@ -213,7 +222,12 @@ process { Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) #Write-Output "contents of file: " $FileContent - Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + if($SubscriptionId){ + Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + } + else{ + Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + } $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 4d6c76f44183..51b77f166710 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -74,6 +74,9 @@ Adds a new customer communication to an Azure support ticket. ### [New-AzSupportCommunicationsNoSubscription](New-AzSupportCommunicationsNoSubscription.md) Adds a new customer communication to an Azure support ticket. +### [New-AzSupportFile](New-AzSupportFile.md) +Creates a new file under a workspace for the specified subscription. + ### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) Creates and uploads a new file under a workspace for the specified subscription. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFile.md b/src/Support/Support.Autorest/docs/New-AzSupportFile.md new file mode 100644 index 000000000000..4d1bfa961b78 --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFile.md @@ -0,0 +1,199 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile +schema: 2.0.0 +--- + +# New-AzSupportFile + +## SYNOPSIS +Creates a new file under a workspace for the specified subscription. + +## SYNTAX + +``` +New-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] + [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates a new file under a workspace for the specified subscription. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ChunkSize +Size of each chunk + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileSize +Size of the file to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +File name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NumberOfChunk +Number of chunks to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure subscription Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileWorkspaceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFile.md b/src/Support/Support.Autorest/examples/New-AzSupportFile.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFile.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/test/Get-AzSupportTicketChatTranscript.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportTicketChatTranscript.Tests.ps1 new file mode 100644 index 000000000000..cac5393da160 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportTicketChatTranscript.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportTicketChatTranscript')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzSupportTicketChatTranscript.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzSupportTicketChatTranscript' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Support/Support.Autorest/test/Get-AzSupportTicketCommunication.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportTicketCommunication.Tests.ps1 new file mode 100644 index 000000000000..e4e95cc60f9a --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportTicketCommunication.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportTicketCommunication')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzSupportTicketCommunication.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzSupportTicketCommunication' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From 69b34431fcd1d2fc9e4978114ffbce8542e0beab Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 19 Jan 2024 14:51:39 -0500 Subject: [PATCH 05/27] combined cmdlets --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 142 ++--- .../fileWorkspaces-files.json | 50 +- .../UX/Microsoft.Support/fileWorkspaces.json | 42 +- .../supportTickets-chatTranscripts.json | 52 +- .../supportTickets-communications.json | 46 +- .../UX/Microsoft.Support/supportTickets.json | 42 +- .../Support.Autorest/docs/Az.Support.md | 57 +- .../docs/Get-AzSupportChatTranscript.md | 51 +- ...-AzSupportChatTranscriptsNoSubscription.md | 154 ----- .../docs/Get-AzSupportCommunication.md | 51 +- ...t-AzSupportCommunicationsNoSubscription.md | 154 ----- .../docs/Get-AzSupportFile.md | 55 +- .../docs/Get-AzSupportFileWorkspace.md | 22 +- ...t-AzSupportFileWorkspacesNoSubscription.md | 117 ---- .../docs/Get-AzSupportFilesNoSubscription.md | 159 ----- .../docs/Get-AzSupportTicket.md | 35 +- ...d => Get-AzSupportTicketChatTranscript.md} | 6 +- ...md => Get-AzSupportTicketCommunication.md} | 6 +- .../Get-AzSupportTicketsNoSubscription.md | 162 ----- .../docs/Invoke-AzSupportUploadFile.md | 101 +++- ...voke-AzSupportUploadFilesNoSubscription.md | 310 ---------- .../docs/New-AzSupportCommunication.md | 15 +- ...w-AzSupportCommunicationsNoSubscription.md | 215 ------- .../docs/New-AzSupportFile.md | 15 +- .../docs/New-AzSupportFileWorkspace.md | 15 +- ...w-AzSupportFileWorkspacesNoSubscription.md | 123 ---- .../docs/New-AzSupportFilesNoSubscription.md | 184 ------ .../docs/New-AzSupportTicket.md | 25 +- .../New-AzSupportTicketsNoSubscription.md | 570 ------------------ ...-AzSupportCommunicationNameAvailability.md | 68 ++- ...nicationsNoSubscriptionNameAvailability.md | 254 -------- .../Test-AzSupportTicketNameAvailability.md | 53 +- ...rtTicketsNoSubscriptionNameAvailability.md | 207 ------- .../docs/Update-AzSupportCommunication.md | 20 +- ...e-AzSupportCommunicationsNoSubscription.md | 264 -------- .../docs/Update-AzSupportFile.md | 24 +- .../Update-AzSupportFilesNoSubscription.md | 232 ------- .../docs/Update-AzSupportTicket.md | 34 +- .../Update-AzSupportTicketsNoSubscription.md | 363 ----------- ...t-AzSupportFileWorkspacesNoSubscription.md | 22 - .../Get-AzSupportFilesNoSubscription.md | 22 - ...d => Get-AzSupportTicketChatTranscript.md} | 0 ...portTicketChatTranscriptsNoSubscription.md | 22 - ...md => Get-AzSupportTicketCommunication.md} | 0 ...pportTicketCommunicationsNoSubscription.md | 22 - .../Get-AzSupportTicketsNoSubscription.md | 22 - ...voke-AzSupportUploadFilesNoSubscription.md | 22 - ...w-AzSupportCommunicationsNoSubscription.md | 22 - ...w-AzSupportFileWorkspacesNoSubscription.md | 22 - .../New-AzSupportFilesNoSubscription.md | 22 - .../New-AzSupportTicketsNoSubscription.md | 22 - ...nicationsNoSubscriptionNameAvailability.md | 22 - ...rtTicketsNoSubscriptionNameAvailability.md | 22 - ...e-AzSupportCommunicationsNoSubscription.md | 22 - .../Update-AzSupportFilesNoSubscription.md | 22 - .../Update-AzSupportTicketsNoSubscription.md | 22 - 57 files changed, 595 insertions(+), 4232 deletions(-) delete mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md rename src/Support/Support.Autorest/docs/{Get-AzSupportTicketChatTranscriptsNoSubscription.md => Get-AzSupportTicketChatTranscript.md} (89%) rename src/Support/Support.Autorest/docs/{Get-AzSupportTicketCommunicationsNoSubscription.md => Get-AzSupportTicketCommunication.md} (94%) delete mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md delete mode 100644 src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md delete mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md rename src/Support/Support.Autorest/examples/{Get-AzSupportChatTranscriptsNoSubscription.md => Get-AzSupportTicketChatTranscript.md} (100%) delete mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md rename src/Support/Support.Autorest/examples/{Get-AzSupportCommunicationsNoSubscription.md => Get-AzSupportTicketCommunication.md} (100%) delete mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md delete mode 100644 src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md delete mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index a9bec25bd711..95c06010023e 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportCommunication', 'Get-AzSupportFile', 'Get-AzSupportFileWorkspace', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscript', 'Get-AzSupportTicketCommunication', 'Invoke-AzSupportUploadFile', 'New-AzSupportCommunication', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFileWorkspace', 'New-AzSupportTicket', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportFile', 'Update-AzSupportTicket' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 0f9b56d3c7bf..cb26b4ad4d67 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -56,78 +56,78 @@ subject-prefix: $(service-name) directive: # Remove the default value of subscriptionId - # - from: source-file-csharp - # where: $ - # transform: $ = $.replace(' [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(\n Name = @"",\n Description =@"",\n Script = @"(Get-AzContext).Subscription.Id",\n SetCondition = @"")]\n', '') + - from: source-file-csharp + where: $ + transform: $ = $.replace(' [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(\n Name = @"",\n Description =@"",\n Script = @"(Get-AzContext).Subscription.Id",\n SetCondition = @"")]\n', '') # Rename the operation ids of NoSubscription to make them can be combined automatically - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/checkNameAvailability"].post' - # transform: > - # $["operationId"] = "SupportTickets_CheckNameAvailabilityWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets"].get' - # transform: > - # $["operationId"] = "SupportTickets_ListWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].get' - # transform: > - # $["operationId"] = "SupportTickets_GetWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].patch' - # transform: > - # $["operationId"] = "SupportTickets_UpdateWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].put' - # transform: > - # $["operationId"] = "SupportTickets_CreateWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability"].post' - # transform: > - # $["operationId"] = "Communications_CheckNameAvailabilityWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get' - # transform: > - # $["operationId"] = "SupportTicketCommunications_ListWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].get' - # transform: > - # $["operationId"] = "Communications_GetWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].put' - # transform: > - # $["operationId"] = "Communications_CreateWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get' - # transform: > - # $["operationId"] = "SupportTicketChatTranscripts_ListWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}"].get' - # transform: > - # $["operationId"] = "ChatTranscripts_GetWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].get' - # transform: > - # $["operationId"] = "FileWorkspaces_GetWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].put' - # transform: > - # $["operationId"] = "FileWorkspaces_CreateWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files"].get' - # transform: > - # $["operationId"] = "Files_ListWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].get' - # transform: > - # $["operationId"] = "Files_GetWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].put' - # transform: > - # $["operationId"] = "Files_CreateWithNoSubscriptionId"; - # - from: swagger-document - # where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload"].post' - # transform: > - # $["operationId"] = "Files_UploadWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/checkNameAvailability"].post' + transform: > + $["operationId"] = "SupportTickets_CheckNameAvailabilityWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets"].get' + transform: > + $["operationId"] = "SupportTickets_ListWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].get' + transform: > + $["operationId"] = "SupportTickets_GetWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].patch' + transform: > + $["operationId"] = "SupportTickets_UpdateWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].put' + transform: > + $["operationId"] = "SupportTickets_CreateWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability"].post' + transform: > + $["operationId"] = "Communications_CheckNameAvailabilityWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get' + transform: > + $["operationId"] = "SupportTicketCommunications_ListWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].get' + transform: > + $["operationId"] = "Communications_GetWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].put' + transform: > + $["operationId"] = "Communications_CreateWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get' + transform: > + $["operationId"] = "SupportTicketChatTranscripts_ListWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}"].get' + transform: > + $["operationId"] = "ChatTranscripts_GetWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].get' + transform: > + $["operationId"] = "FileWorkspaces_GetWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].put' + transform: > + $["operationId"] = "FileWorkspaces_CreateWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files"].get' + transform: > + $["operationId"] = "Files_ListWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].get' + transform: > + $["operationId"] = "Files_GetWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].put' + transform: > + $["operationId"] = "Files_CreateWithNoSubscriptionId"; + - from: swagger-document + where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload"].post' + transform: > + $["operationId"] = "Files_UploadWithNoSubscriptionId"; - where: model-name: ProblemClassification set: diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json index 5a9261a88b67..3ae07a00d97f 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json @@ -6,18 +6,25 @@ }, "commands": [ { - "name": "Get-AzSupportFilesNoSubscription", + "name": "Get-AzSupportFile", "description": "Returns details of a specific file in a work space.", - "path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", "help": { "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfilesnosubscription" + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfile" }, "parameterSets": [ { "parameters": [ - "-FileName ", - "-FileWorkspaceName " + "-Name ", + "[-SubscriptionId ]", + "-WorkspaceName " + ] + }, + { + "parameters": [ + "-Name ", + "-WorkspaceName " ] } ] @@ -27,36 +34,19 @@ "description": "Returns details of a specific file in a work space.", "parameters": [ { - "name": "-FileName", + "name": "-Name", "value": "[Path.fileName]" }, { - "name": "-FileWorkspaceName", + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, + { + "name": "-WorkspaceName", "value": "[Path.fileWorkspaceName]" } ] - } - ] - }, - { - "name": "Get-AzSupportFile", - "description": "Returns details of a specific file in a work space.", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfile" }, - "parameterSets": [ - { - "parameters": [ - "-Name ", - "[-SubscriptionId ]", - "-WorkspaceName " - ] - } - ] - }, - "examples": [ { "description": "Returns details of a specific file in a work space.", "parameters": [ @@ -64,10 +54,6 @@ "name": "-Name", "value": "[Path.fileName]" }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, { "name": "-WorkspaceName", "value": "[Path.fileWorkspaceName]" diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json index 6527b56a9a05..a9a072ab072b 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json @@ -5,34 +5,6 @@ "url": "https://learn.microsoft.com/powershell/module/az.support" }, "commands": [ - { - "name": "Get-AzSupportFileWorkspacesNoSubscription", - "description": "Gets details for a specific file workspace.", - "path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspacesnosubscription" - }, - "parameterSets": [ - { - "parameters": [ - "-FileWorkspaceName " - ] - } - ] - }, - "examples": [ - { - "description": "Gets details for a specific file workspace.", - "parameters": [ - { - "name": "-FileWorkspaceName", - "value": "[Path.fileWorkspaceName]" - } - ] - } - ] - }, { "name": "Get-AzSupportFileWorkspace", "description": "Gets details for a specific file workspace in an Azure subscription.", @@ -47,6 +19,11 @@ "-Name ", "[-SubscriptionId ]" ] + }, + { + "parameters": [ + "-Name " + ] } ] }, @@ -63,6 +40,15 @@ "value": "[Path.subscriptionId]" } ] + }, + { + "description": "Gets details for a specific file workspace.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.fileWorkspaceName]" + } + ] } ] } diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json index 9257bc37a5f1..87d5f6d0b718 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json @@ -5,39 +5,6 @@ "url": "https://learn.microsoft.com/powershell/module/az.support" }, "commands": [ - { - "name": "Get-AzSupportChatTranscriptsNoSubscription", - "description": "Returns chatTranscript details for a no subscription support ticket.", - "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscriptsnosubscription" - }, - "parameterSets": [ - { - "parameters": [ - "-ChatTranscriptName ", - "-SupportTicketName " - ] - } - ] - }, - "examples": [ - { - "description": "Returns chatTranscript details for a no subscription support ticket.", - "parameters": [ - { - "name": "-ChatTranscriptName", - "value": "[Path.chatTranscriptName]" - }, - { - "name": "-SupportTicketName", - "value": "[Path.supportTicketName]" - } - ] - } - ] - }, { "name": "Get-AzSupportChatTranscript", "description": "Returns chatTranscript details for a support ticket under a subscription.", @@ -53,6 +20,12 @@ "[-SubscriptionId ]", "-SupportTicketName " ] + }, + { + "parameters": [ + "-Name ", + "-SupportTicketName " + ] } ] }, @@ -73,6 +46,19 @@ "value": "[Path.supportTicketName]" } ] + }, + { + "description": "Returns chatTranscript details for a no subscription support ticket.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.chatTranscriptName]" + }, + { + "name": "-SupportTicketName", + "value": "[Path.supportTicketName]" + } + ] } ] } diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json index 81a87c00be93..72b6437d961a 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json @@ -6,17 +6,24 @@ }, "commands": [ { - "name": "Get-AzSupportCommunicationsNoSubscription", + "name": "Get-AzSupportCommunication", "description": "Returns communication details for a support ticket.", - "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", "help": { "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunicationsnosubscription" + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunication" }, "parameterSets": [ { "parameters": [ - "-CommunicationName ", + "-Name ", + "[-SubscriptionId ]", + "-SupportTicketName " + ] + }, + { + "parameters": [ + "-Name ", "-SupportTicketName " ] } @@ -27,36 +34,19 @@ "description": "Returns communication details for a support ticket.", "parameters": [ { - "name": "-CommunicationName", + "name": "-Name", "value": "[Path.communicationName]" }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" } ] - } - ] - }, - { - "name": "Get-AzSupportCommunication", - "description": "Returns communication details for a support ticket.", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunication" }, - "parameterSets": [ - { - "parameters": [ - "-Name ", - "[-SubscriptionId ]", - "-SupportTicketName " - ] - } - ] - }, - "examples": [ { "description": "Returns communication details for a support ticket.", "parameters": [ @@ -64,10 +54,6 @@ "name": "-Name", "value": "[Path.communicationName]" }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json index a3f9f8a89439..30d3711e96db 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json @@ -5,34 +5,6 @@ "url": "https://learn.microsoft.com/powershell/module/az.support" }, "commands": [ - { - "name": "Get-AzSupportTicketsNoSubscription", - "description": "Gets details for a specific support ticket.\nSupport ticket data is available for 18 months after ticket creation.\nIf a ticket was created more than 18 months ago, a request for data might cause an error.", - "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketsnosubscription" - }, - "parameterSets": [ - { - "parameters": [ - "-SupportTicketName " - ] - } - ] - }, - "examples": [ - { - "description": "Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.", - "parameters": [ - { - "name": "-SupportTicketName", - "value": "[Path.supportTicketName]" - } - ] - } - ] - }, { "name": "Get-AzSupportTicket", "description": "Get ticket details for an Azure subscription.\nSupport ticket data is available for 18 months after ticket creation.\nIf a ticket was created more than 18 months ago, a request for data might cause an error.", @@ -47,6 +19,11 @@ "-Name ", "[-SubscriptionId ]" ] + }, + { + "parameters": [ + "-Name " + ] } ] }, @@ -63,6 +40,15 @@ "value": "[Path.subscriptionId]" } ] + }, + { + "description": "Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.supportTicketName]" + } + ] } ] } diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 51b77f166710..9e3c656aa269 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -14,27 +14,15 @@ Microsoft Azure PowerShell: Support cmdlets ### [Get-AzSupportChatTranscript](Get-AzSupportChatTranscript.md) Returns chatTranscript details for a support ticket under a subscription. -### [Get-AzSupportChatTranscriptsNoSubscription](Get-AzSupportChatTranscriptsNoSubscription.md) -Returns chatTranscript details for a no subscription support ticket. - ### [Get-AzSupportCommunication](Get-AzSupportCommunication.md) Returns communication details for a support ticket. -### [Get-AzSupportCommunicationsNoSubscription](Get-AzSupportCommunicationsNoSubscription.md) -Returns communication details for a support ticket. - ### [Get-AzSupportFile](Get-AzSupportFile.md) Returns details of a specific file in a work space. -### [Get-AzSupportFilesNoSubscription](Get-AzSupportFilesNoSubscription.md) -Returns details of a specific file in a work space. - ### [Get-AzSupportFileWorkspace](Get-AzSupportFileWorkspace.md) Gets details for a specific file workspace in an Azure subscription. -### [Get-AzSupportFileWorkspacesNoSubscription](Get-AzSupportFileWorkspacesNoSubscription.md) -Gets details for a specific file workspace. - ### [Get-AzSupportProblemClassification](Get-AzSupportProblemClassification.md) Get problem classification details for a specific Azure service. @@ -46,10 +34,10 @@ Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. -### [Get-AzSupportTicketChatTranscriptsNoSubscription](Get-AzSupportTicketChatTranscriptsNoSubscription.md) +### [Get-AzSupportTicketChatTranscript](Get-AzSupportTicketChatTranscript.md) Lists all chat transcripts for a support ticket -### [Get-AzSupportTicketCommunicationsNoSubscription](Get-AzSupportTicketCommunicationsNoSubscription.md) +### [Get-AzSupportTicketCommunication](Get-AzSupportTicketCommunication.md) Lists all communications (attachments not included) for a support ticket. \
\ You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. @@ -57,38 +45,21 @@ Output will be a paged result with _nextLink_, using which you can retrieve the \
\
Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. -### [Get-AzSupportTicketsNoSubscription](Get-AzSupportTicketsNoSubscription.md) -Gets details for a specific support ticket. -Support ticket data is available for 18 months after ticket creation. -If a ticket was created more than 18 months ago, a request for data might cause an error. - ### [Invoke-AzSupportUploadFile](Invoke-AzSupportUploadFile.md) This API allows you to upload content to a file -### [Invoke-AzSupportUploadFilesNoSubscription](Invoke-AzSupportUploadFilesNoSubscription.md) -This API allows you to upload content to a file - ### [New-AzSupportCommunication](New-AzSupportCommunication.md) Adds a new customer communication to an Azure support ticket. -### [New-AzSupportCommunicationsNoSubscription](New-AzSupportCommunicationsNoSubscription.md) -Adds a new customer communication to an Azure support ticket. - ### [New-AzSupportFile](New-AzSupportFile.md) Creates a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) Creates and uploads a new file under a workspace for the specified subscription. -### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) -Creates a new file under a workspace. - ### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) Creates a new file workspace for the specified subscription. -### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md) -Creates a new file workspace. - ### [New-AzSupportTicket](New-AzSupportTicket.md) Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. @@ -98,45 +69,21 @@ The primary token will be from the tenant for whom a support ticket is being rai Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. -### [New-AzSupportTicketsNoSubscription](New-AzSupportTicketsNoSubscription.md) -Creates a new support ticket for Billing, and Subscription Management issues. -Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. -To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. -The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
- ### [Test-AzSupportCommunicationNameAvailability](Test-AzSupportCommunicationNameAvailability.md) Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. -### [Test-AzSupportCommunicationsNoSubscriptionNameAvailability](Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md) -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. - ### [Test-AzSupportTicketNameAvailability](Test-AzSupportTicketNameAvailability.md) Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. -### [Test-AzSupportTicketsNoSubscriptionNameAvailability](Test-AzSupportTicketsNoSubscriptionNameAvailability.md) -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. - ### [Update-AzSupportCommunication](Update-AzSupportCommunication.md) Adds a new customer communication to an Azure support ticket. -### [Update-AzSupportCommunicationsNoSubscription](Update-AzSupportCommunicationsNoSubscription.md) -Adds a new customer communication to an Azure support ticket. - ### [Update-AzSupportFile](Update-AzSupportFile.md) -Creates a new file under a workspace for the specified subscription. - -### [Update-AzSupportFilesNoSubscription](Update-AzSupportFilesNoSubscription.md) Creates a new file under a workspace. ### [Update-AzSupportTicket](Update-AzSupportTicket.md) This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. -### [Update-AzSupportTicketsNoSubscription](Update-AzSupportTicketsNoSubscription.md) -This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. -In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. - diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md index 4eea13a1512c..6ccb2eec1982 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md @@ -12,15 +12,15 @@ Returns chatTranscript details for a support ticket under a subscription. ## SYNTAX -### List (Default) +### Get1 (Default) ``` -Get-AzSupportChatTranscript -SupportTicketName [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzSupportChatTranscript -Name -SupportTicketName [-DefaultProfile ] + [] ``` ### Get ``` -Get-AzSupportChatTranscript -Name -SupportTicketName [-SubscriptionId ] +Get-AzSupportChatTranscript -Name -SubscriptionId -SupportTicketName [-DefaultProfile ] [] ``` @@ -29,12 +29,29 @@ Get-AzSupportChatTranscript -Name -SupportTicketName [-Subscri Get-AzSupportChatTranscript -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentity1 +``` +Get-AzSupportChatTranscript -InputObject [-DefaultProfile ] [] +``` + ### GetViaIdentitySupportTicket ``` Get-AzSupportChatTranscript -Name -SupportTicketInputObject [-DefaultProfile ] [] ``` +### GetViaIdentitySupportTicket1 +``` +Get-AzSupportChatTranscript -Name -SupportTicket1InputObject + [-DefaultProfile ] [] +``` + +### List +``` +Get-AzSupportChatTranscript -SubscriptionId -SupportTicketName + [-DefaultProfile ] [] +``` + ## DESCRIPTION Returns chatTranscript details for a support ticket under a subscription. @@ -86,7 +103,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 Aliases: Required: True @@ -101,7 +118,7 @@ ChatTranscript name. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentitySupportTicket +Parameter Sets: Get, Get1, GetViaIdentitySupportTicket, GetViaIdentitySupportTicket1 Aliases: ChatTranscriptName Required: True @@ -119,13 +136,29 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -SupportTicket1InputObject +Identity Parameter +To construct, see NOTES section for SUPPORTTICKET1INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentitySupportTicket1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. @@ -147,7 +180,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, Get1, List Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md deleted file mode 100644 index f302ca238726..000000000000 --- a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md +++ /dev/null @@ -1,154 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscriptsnosubscription -schema: 2.0.0 ---- - -# Get-AzSupportChatTranscriptsNoSubscription - -## SYNOPSIS -Returns chatTranscript details for a no subscription support ticket. - -## SYNTAX - -### Get (Default) -``` -Get-AzSupportChatTranscriptsNoSubscription -ChatTranscriptName -SupportTicketName - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzSupportChatTranscriptsNoSubscription -InputObject [-DefaultProfile ] - [] -``` - -### GetViaIdentitySupportTicket -``` -Get-AzSupportChatTranscriptsNoSubscription -ChatTranscriptName - -SupportTicketInputObject [-DefaultProfile ] [] -``` - -## DESCRIPTION -Returns chatTranscript details for a no subscription support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChatTranscriptName -ChatTranscript name. - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentitySupportTicket -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketInputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentitySupportTicket -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md index b617365ad91d..314ebeca7e94 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md @@ -12,15 +12,15 @@ Returns communication details for a support ticket. ## SYNTAX -### List (Default) +### Get1 (Default) ``` -Get-AzSupportCommunication -SupportTicketName [-SubscriptionId ] [-Filter ] - [-Top ] [-DefaultProfile ] [] +Get-AzSupportCommunication -Name -SupportTicketName [-DefaultProfile ] + [] ``` ### Get ``` -Get-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] +Get-AzSupportCommunication -Name -SubscriptionId -SupportTicketName [-DefaultProfile ] [] ``` @@ -29,12 +29,29 @@ Get-AzSupportCommunication -Name -SupportTicketName [-Subscrip Get-AzSupportCommunication -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentity1 +``` +Get-AzSupportCommunication -InputObject [-DefaultProfile ] [] +``` + ### GetViaIdentitySupportTicket ``` Get-AzSupportCommunication -Name -SupportTicketInputObject [-DefaultProfile ] [] ``` +### GetViaIdentitySupportTicket1 +``` +Get-AzSupportCommunication -Name -SupportTicket1InputObject + [-DefaultProfile ] [] +``` + +### List +``` +Get-AzSupportCommunication -SubscriptionId -SupportTicketName [-Filter ] + [-Top ] [-DefaultProfile ] [] +``` + ## DESCRIPTION Returns communication details for a support ticket. @@ -104,7 +121,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 Aliases: Required: True @@ -119,7 +136,7 @@ Communication name. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentitySupportTicket +Parameter Sets: Get, Get1, GetViaIdentitySupportTicket, GetViaIdentitySupportTicket1 Aliases: CommunicationName Required: True @@ -137,13 +154,29 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -SupportTicket1InputObject +Identity Parameter +To construct, see NOTES section for SUPPORTTICKET1INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentitySupportTicket1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. @@ -165,7 +198,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, Get1, List Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index d2893ca78b85..000000000000 --- a/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,154 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunicationsnosubscription -schema: 2.0.0 ---- - -# Get-AzSupportCommunicationsNoSubscription - -## SYNOPSIS -Returns communication details for a support ticket. - -## SYNTAX - -### Get (Default) -``` -Get-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzSupportCommunicationsNoSubscription -InputObject [-DefaultProfile ] - [] -``` - -### GetViaIdentitySupportTicket -``` -Get-AzSupportCommunicationsNoSubscription -CommunicationName - -SupportTicketInputObject [-DefaultProfile ] [] -``` - -## DESCRIPTION -Returns communication details for a support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -CommunicationName -Communication name. - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentitySupportTicket -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketInputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentitySupportTicket -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md index cbfefafc66b7..8379b8ba8f3a 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md @@ -12,29 +12,50 @@ Returns details of a specific file in a work space. ## SYNTAX -### List (Default) +### List1 (Default) ``` -Get-AzSupportFile -WorkspaceName [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzSupportFile -WorkspaceName [-DefaultProfile ] [] ``` ### Get ``` -Get-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] +Get-AzSupportFile -Name -SubscriptionId -WorkspaceName [-DefaultProfile ] [] ``` +### Get1 +``` +Get-AzSupportFile -Name -WorkspaceName [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzSupportFile -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentity1 +``` +Get-AzSupportFile -InputObject [-DefaultProfile ] [] +``` + ### GetViaIdentityFileWorkspace ``` Get-AzSupportFile -FileWorkspaceInputObject -Name [-DefaultProfile ] [] ``` +### GetViaIdentityFileWorkspace1 +``` +Get-AzSupportFile -FileWorkspace1InputObject -Name [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzSupportFile -SubscriptionId -WorkspaceName [-DefaultProfile ] + [] +``` + ## DESCRIPTION Returns details of a specific file in a work space. @@ -80,6 +101,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FileWorkspace1InputObject +Identity Parameter +To construct, see NOTES section for FILEWORKSPACE1INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentityFileWorkspace1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FileWorkspaceInputObject Identity Parameter To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. @@ -102,7 +139,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 Aliases: Required: True @@ -117,7 +154,7 @@ File Name ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityFileWorkspace +Parameter Sets: Get, Get1, GetViaIdentityFileWorkspace, GetViaIdentityFileWorkspace1 Aliases: FileName Required: True @@ -135,9 +172,9 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -147,7 +184,7 @@ File Workspace Name ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, Get1, List, List1 Aliases: FileWorkspaceName Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md index da2647de2602..a6bff3344831 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md @@ -12,9 +12,14 @@ Gets details for a specific file workspace in an Azure subscription. ## SYNTAX -### Get (Default) +### Get1 (Default) ``` -Get-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] +Get-AzSupportFileWorkspace -Name [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzSupportFileWorkspace -Name -SubscriptionId [-DefaultProfile ] [] ``` @@ -23,6 +28,11 @@ Get-AzSupportFileWorkspace -Name [-SubscriptionId ] [-Default Get-AzSupportFileWorkspace -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentity1 +``` +Get-AzSupportFileWorkspace -InputObject [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets details for a specific file workspace in an Azure subscription. @@ -74,7 +84,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 Aliases: Required: True @@ -89,7 +99,7 @@ File Workspace Name ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, Get1 Aliases: FileWorkspaceName Required: True @@ -107,9 +117,9 @@ Type: System.String[] Parameter Sets: Get Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index 8694b5cc60ca..000000000000 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,117 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspacesnosubscription -schema: 2.0.0 ---- - -# Get-AzSupportFileWorkspacesNoSubscription - -## SYNOPSIS -Gets details for a specific file workspace. - -## SYNTAX - -### Get (Default) -``` -Get-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzSupportFileWorkspacesNoSubscription -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets details for a specific file workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File Workspace Name - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md deleted file mode 100644 index f6180f653c2a..000000000000 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,159 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportfilesnosubscription -schema: 2.0.0 ---- - -# Get-AzSupportFilesNoSubscription - -## SYNOPSIS -Returns details of a specific file in a work space. - -## SYNTAX - -### List (Default) -``` -Get-AzSupportFilesNoSubscription -FileWorkspaceName [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzSupportFilesNoSubscription -InputObject [-DefaultProfile ] - [] -``` - -### GetViaIdentityFileWorkspace -``` -Get-AzSupportFilesNoSubscription -FileName -FileWorkspaceInputObject - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Returns details of a specific file in a work space. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File Name - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentityFileWorkspace -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentityFileWorkspace -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File Workspace Name - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md index f128ebbd31ef..a58fb71d656a 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md @@ -14,23 +14,38 @@ If a ticket was created more than 18 months ago, a request for data might cause ## SYNTAX -### List (Default) +### List1 (Default) ``` -Get-AzSupportTicket [-SubscriptionId ] [-Filter ] [-Top ] - [-DefaultProfile ] [] +Get-AzSupportTicket [-Filter ] [-Top ] [-DefaultProfile ] [] ``` ### Get ``` -Get-AzSupportTicket -Name [-SubscriptionId ] [-DefaultProfile ] +Get-AzSupportTicket -Name -SubscriptionId [-DefaultProfile ] [] ``` +### Get1 +``` +Get-AzSupportTicket -Name [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzSupportTicket -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentity1 +``` +Get-AzSupportTicket -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzSupportTicket -SubscriptionId [-Filter ] [-Top ] [-DefaultProfile ] + [] +``` + ## DESCRIPTION Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. @@ -88,7 +103,7 @@ When using both filters, combine them using the logical 'AND'. ```yaml Type: System.String -Parameter Sets: List +Parameter Sets: List, List1 Aliases: Required: False @@ -104,7 +119,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity +Parameter Sets: GetViaIdentity, GetViaIdentity1 Aliases: Required: True @@ -119,7 +134,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, Get1 Aliases: SupportTicketName Required: True @@ -137,9 +152,9 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -150,7 +165,7 @@ Default is 25 and max is 100. ```yaml Type: System.Int32 -Parameter Sets: List +Parameter Sets: List, List1 Aliases: Required: False diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md similarity index 89% rename from src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md rename to src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md index 9ccf242ecaa1..972faf71c1e1 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketchattranscriptsnosubscription +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketchattranscript schema: 2.0.0 --- -# Get-AzSupportTicketChatTranscriptsNoSubscription +# Get-AzSupportTicketChatTranscript ## SYNOPSIS Lists all chat transcripts for a support ticket @@ -13,7 +13,7 @@ Lists all chat transcripts for a support ticket ## SYNTAX ``` -Get-AzSupportTicketChatTranscriptsNoSubscription -SupportTicketName [-DefaultProfile ] +Get-AzSupportTicketChatTranscript -SupportTicketName [-DefaultProfile ] [] ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md similarity index 94% rename from src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md rename to src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md index b4670eeb486d..ee87e9eb4cd0 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketcommunicationsnosubscription +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketcommunication schema: 2.0.0 --- -# Get-AzSupportTicketCommunicationsNoSubscription +# Get-AzSupportTicketCommunication ## SYNOPSIS Lists all communications (attachments not included) for a support ticket. @@ -18,7 +18,7 @@ If a ticket was created more than 18 months ago, a request for data might cause ## SYNTAX ``` -Get-AzSupportTicketCommunicationsNoSubscription -SupportTicketName [-Filter ] [-Top ] +Get-AzSupportTicketCommunication -SupportTicketName [-Filter ] [-Top ] [-DefaultProfile ] [] ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md deleted file mode 100644 index c913f9ce8ba8..000000000000 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,162 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketsnosubscription -schema: 2.0.0 ---- - -# Get-AzSupportTicketsNoSubscription - -## SYNOPSIS -Gets details for a specific support ticket. -Support ticket data is available for 18 months after ticket creation. -If a ticket was created more than 18 months ago, a request for data might cause an error. - -## SYNTAX - -### List (Default) -``` -Get-AzSupportTicketsNoSubscription [-Filter ] [-Top ] [-DefaultProfile ] - [] -``` - -### Get -``` -Get-AzSupportTicketsNoSubscription -SupportTicketName [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzSupportTicketsNoSubscription -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets details for a specific support ticket. -Support ticket data is available for 18 months after ticket creation. -If a ticket was created more than 18 months ago, a request for data might cause an error. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Filter -The filter to apply on the operation. -We support 'odata v4.0' filter semantics. -\Learn more\ \
\Status\ , \ServiceId\, and \ProblemClassificationId\ filters can only be used with 'eq' operator. -For \CreatedDate\ filter, the supported operators are 'gt' and 'ge'. -When using both filters, combine them using the logical 'AND'. - -```yaml -Type: System.String -Parameter Sets: List -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Top -The number of values to return in the collection. -Default is 25 and max is 100. - -```yaml -Type: System.Int32 -Parameter Sets: List -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md index 809e2f394c4f..1ebb3b329cfb 100644 --- a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md +++ b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md @@ -12,17 +12,29 @@ This API allows you to upload content to a file ## SYNTAX -### UploadExpanded (Default) +### UploadExpanded1 (Default) ``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName [-SubscriptionId ] - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName [-ChunkIndex ] + [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### Upload ``` +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId + -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### Upload1 +``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -UploadFile - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadExpanded +``` +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId + [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] ``` ### UploadViaIdentity @@ -31,18 +43,36 @@ Invoke-AzSupportUploadFile -InputObject -UploadFile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### UploadViaIdentity1 +``` +Invoke-AzSupportUploadFile -InputObject -UploadFile + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### UploadViaIdentityExpanded ``` Invoke-AzSupportUploadFile -InputObject [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### UploadViaIdentityExpanded1 +``` +Invoke-AzSupportUploadFile -InputObject [-ChunkIndex ] [-Content ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### UploadViaIdentityFileWorkspace ``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### UploadViaIdentityFileWorkspace1 +``` +Invoke-AzSupportUploadFile -FileName -FileWorkspace1InputObject + -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ### UploadViaIdentityFileWorkspaceExpanded ``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject @@ -50,16 +80,35 @@ Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject ] ``` +### UploadViaIdentityFileWorkspaceExpanded1 +``` +Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject + [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ### UploadViaJsonFilePath ``` +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId + -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaJsonFilePath1 +``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### UploadViaJsonString ``` +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId + -JsonString [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaJsonString1 +``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -96,7 +145,7 @@ Index of the uploaded chunk (Index starts at 0) ```yaml Type: System.Single -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded +Parameter Sets: UploadExpanded, UploadExpanded1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 Aliases: Required: False @@ -111,7 +160,7 @@ File Content in base64 encoded format ```yaml Type: System.String -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded +Parameter Sets: UploadExpanded, UploadExpanded1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 Aliases: Required: False @@ -142,7 +191,7 @@ File Name ```yaml Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString +Parameter Sets: Upload, Upload1, UploadExpanded, UploadExpanded1, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspace1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1, UploadViaJsonFilePath, UploadViaJsonFilePath1, UploadViaJsonString, UploadViaJsonString1 Aliases: Required: True @@ -152,13 +201,29 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FileWorkspace1InputObject +Identity Parameter +To construct, see NOTES section for FILEWORKSPACE1INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UploadViaIdentityFileWorkspace1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -FileWorkspaceInputObject Identity Parameter To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded +Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 Aliases: Required: True @@ -173,7 +238,7 @@ File WorkspaceName ```yaml Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString +Parameter Sets: Upload, Upload1, UploadExpanded, UploadExpanded1, UploadViaJsonFilePath, UploadViaJsonFilePath1, UploadViaJsonString, UploadViaJsonString1 Aliases: Required: True @@ -189,7 +254,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded +Parameter Sets: UploadViaIdentity, UploadViaIdentity1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1 Aliases: Required: True @@ -204,7 +269,7 @@ Path of Json file supplied to the Upload operation ```yaml Type: System.String -Parameter Sets: UploadViaJsonFilePath +Parameter Sets: UploadViaJsonFilePath, UploadViaJsonFilePath1 Aliases: Required: True @@ -219,7 +284,7 @@ Json string supplied to the Upload operation ```yaml Type: System.String -Parameter Sets: UploadViaJsonString +Parameter Sets: UploadViaJsonString, UploadViaJsonString1 Aliases: Required: True @@ -252,9 +317,9 @@ Type: System.String Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -265,7 +330,7 @@ To construct, see NOTES section for UPLOADFILE properties and create a hash tabl ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile -Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace +Parameter Sets: Upload, Upload1, UploadViaIdentity, UploadViaIdentity1, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspace1 Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md deleted file mode 100644 index f9454747463c..000000000000 --- a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md +++ /dev/null @@ -1,310 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/invoke-azsupportuploadfilesnosubscription -schema: 2.0.0 ---- - -# Invoke-AzSupportUploadFilesNoSubscription - -## SYNOPSIS -This API allows you to upload content to a file - -## SYNTAX - -### UploadExpanded (Default) -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### Upload -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentity -``` -Invoke-AzSupportUploadFilesNoSubscription -InputObject -UploadFile - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityExpanded -``` -Invoke-AzSupportUploadFilesNoSubscription -InputObject [-ChunkIndex ] - [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspace -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspaceExpanded -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### UploadViaJsonFilePath -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaJsonString -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName -JsonString - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -This API allows you to upload content to a file - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkIndex -Index of the uploaded chunk (Index starts at 0) - -```yaml -Type: System.Single -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Content -File Content in base64 encoded format - -```yaml -Type: System.String -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File Name - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File WorkspaceName - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UploadFile -File content associated with the file under a workspace. -To construct, see NOTES section for UPLOADFILE properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile -Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md index 18b58f883ec9..3ccd0d729685 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md @@ -12,8 +12,15 @@ Adds a new customer communication to an Azure support ticket. ## SYNTAX +### CreateExpanded1 (Default) ``` -New-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] +New-AzSupportCommunication -Name -SupportTicketName [-Body ] [-Sender ] + [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateExpanded +``` +New-AzSupportCommunication -Name -SubscriptionId -SupportTicketName [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -159,12 +166,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 9a4d1ee6b6ac..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportcommunicationsnosubscription -schema: 2.0.0 ---- - -# New-AzSupportCommunicationsNoSubscription - -## SYNOPSIS -Adds a new customer communication to an Azure support ticket. - -## SYNTAX - -``` -New-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName - [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Adds a new customer communication to an Azure support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Body -Body of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CommunicationName -Communication name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Sender -Email address of the sender. -This property is required if called by a service principal. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Subject -Subject of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFile.md b/src/Support/Support.Autorest/docs/New-AzSupportFile.md index 4d1bfa961b78..4b3a5ef688f0 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFile.md @@ -12,8 +12,15 @@ Creates a new file under a workspace for the specified subscription. ## SYNTAX +### CreateExpanded1 (Default) ``` -New-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] +New-AzSupportFile -Name -WorkspaceName [-ChunkSize ] [-FileSize ] + [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateExpanded +``` +New-AzSupportFile -Name -SubscriptionId -WorkspaceName [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -128,12 +135,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md index 1f1da952b27e..c83aff17c46b 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md @@ -12,8 +12,15 @@ Creates a new file workspace for the specified subscription. ## SYNTAX +### Create1 (Default) ``` -New-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [-Confirm] +New-AzSupportFileWorkspace -Name [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### Create +``` +New-AzSupportFileWorkspace -Name -SubscriptionId [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -82,12 +89,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Create Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index cf44505a15fb..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,123 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription -schema: 2.0.0 ---- - -# New-AzSupportFileWorkspacesNoSubscription - -## SYNOPSIS -Creates a new file workspace. - -## SYNTAX - -``` -New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Creates a new file workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index 5a47e1fd99e1..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,184 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfilesnosubscription -schema: 2.0.0 ---- - -# New-AzSupportFilesNoSubscription - -## SYNOPSIS -Creates a new file under a workspace. - -## SYNTAX - -``` -New-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Creates a new file under a workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md index 26a0ccbbf6d8..a5cf76800274 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md @@ -18,8 +18,25 @@ The auxiliary token will be from the Cloud solution provider (CSP) partner tenan ## SYNTAX +### CreateExpanded1 (Default) ``` -New-AzSupportTicket -Name [-SubscriptionId ] [-AdvancedDiagnosticConsent ] +New-AzSupportTicket -Name [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-Description ] [-FileWorkspaceName ] [-ProblemClassificationId ] + [-ProblemScopingQuestion ] [-ProblemStartTime ] + [-QuotaTicketDetailQuotaChangeRequest ] + [-QuotaTicketDetailQuotaChangeRequestSubType ] [-QuotaTicketDetailQuotaChangeRequestVersion ] + [-Require24X7Response] [-SecondaryConsent ] [-ServiceId ] [-Severity ] + [-SupportPlanId ] [-SupportTicketId ] [-TechnicalTicketDetailResourceId ] + [-Title ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateExpanded +``` +New-AzSupportTicket -Name -SubscriptionId [-AdvancedDiagnosticConsent ] [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] @@ -475,12 +492,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md deleted file mode 100644 index b0de6d5ef02b..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,570 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportticketsnosubscription -schema: 2.0.0 ---- - -# New-AzSupportTicketsNoSubscription - -## SYNOPSIS -Creates a new support ticket for Billing, and Subscription Management issues. -Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. -To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. -The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
- -## SYNTAX - -``` -New-AzSupportTicketsNoSubscription -SupportTicketName [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-Description ] [-FileWorkspaceName ] [-ProblemClassificationId ] - [-ProblemScopingQuestion ] [-ProblemStartTime ] - [-QuotaTicketDetailQuotaChangeRequest ] - [-QuotaTicketDetailQuotaChangeRequestSubType ] [-QuotaTicketDetailQuotaChangeRequestVersion ] - [-Require24X7Response] [-SecondaryConsent ] [-ServiceId ] [-Severity ] - [-SupportPlanId ] [-SupportTicketId ] [-TechnicalTicketDetailResourceId ] - [-Title ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Creates a new support ticket for Billing, and Subscription Management issues. -Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. -To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. -The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
- -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AdvancedDiagnosticConsent -Advanced diagnostic consent to be updated on the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailAdditionalEmailAddress -Additional email addresses listed will be copied on any correspondence about the support ticket. - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailCountry -Country of the user. -This is the ISO 3166-1 alpha-3 code. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailFirstName -First name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailLastName -Last name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPhoneNumber -Phone number. -This is required if preferred contact method is phone. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredContactMethod -Preferred contact method. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredSupportLanguage -Preferred language of support from Azure. -Support languages vary based on the severity you choose for your support ticket. -Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response). -Use the standard language-country code. -Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredTimeZone -Time zone of the user. -This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPrimaryEmailAddress -Primary email address. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Description -Detailed description of the question or issue. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProblemClassificationId -Each Azure service has its own set of issue categories, also known as problem classification. -This parameter is the unique Id for the type of problem you are experiencing. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProblemScopingQuestion -Problem scoping questions associated with the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProblemStartTime -Time in UTC (ISO 8601 format) when the problem started. - -```yaml -Type: System.DateTime -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -QuotaTicketDetailQuotaChangeRequest -This property is required for providing the region and new quota limits. -To construct, see NOTES section for QUOTATICKETDETAILQUOTACHANGEREQUEST properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IQuotaChangeRequest[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -QuotaTicketDetailQuotaChangeRequestSubType -Required for certain quota types when there is a sub type, such as Batch, for which you are requesting a quota increase. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -QuotaTicketDetailQuotaChangeRequestVersion -Quota change request version. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Require24X7Response -Indicates if this requires a 24x7 response from Azure. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SecondaryConsent -This property indicates secondary consents for the support ticket -To construct, see NOTES section for SECONDARYCONSENT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISecondaryConsent[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ServiceId -This is the resource Id of the Azure service resource associated with the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Severity -A value that indicates the urgency of the case, which in turn determines the response time according to the service level agreement of the technical support plan you have with Azure. -Note: 'Highest critical impact', also known as the 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportPlanId -Support plan id associated with the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketId -System generated support ticket Id that is unique. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -TechnicalTicketDetailResourceId -This is the resource Id of the Azure service resource (For example: A virtual machine resource or an HDInsight resource) for which the support ticket is created. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Title -Title of the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md index a7951c2391f7..cef648c3e4e1 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md @@ -13,17 +13,30 @@ This API should be used to check the uniqueness of the name for adding a new com ## SYNTAX -### CheckExpanded (Default) +### CheckExpanded1 (Default) ``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -Name -Type - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### Check ``` +Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### Check1 +``` Test-AzSupportCommunicationNameAvailability -SupportTicketName - -CheckNameAvailabilityInput [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CheckExpanded +``` +Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName + -Name -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaIdentity @@ -33,22 +46,47 @@ Test-AzSupportCommunicationNameAvailability -InputObject [] ``` +### CheckViaIdentity1 +``` +Test-AzSupportCommunicationNameAvailability -InputObject + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ### CheckViaIdentityExpanded ``` Test-AzSupportCommunicationNameAvailability -InputObject -Name -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CheckViaIdentityExpanded1 +``` +Test-AzSupportCommunicationNameAvailability -InputObject -Name -Type + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ### CheckViaJsonFilePath ``` +Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName + -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonFilePath1 +``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaJsonString ``` +Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName + -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonString1 +``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -87,7 +125,7 @@ To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and cr ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check, CheckViaIdentity +Parameter Sets: Check, Check1, CheckViaIdentity, CheckViaIdentity1 Aliases: Required: True @@ -119,7 +157,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: CheckViaIdentity, CheckViaIdentityExpanded +Parameter Sets: CheckViaIdentity, CheckViaIdentity1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 Aliases: Required: True @@ -134,7 +172,7 @@ Path of Json file supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonFilePath +Parameter Sets: CheckViaJsonFilePath, CheckViaJsonFilePath1 Aliases: Required: True @@ -149,7 +187,7 @@ Json string supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonString +Parameter Sets: CheckViaJsonString, CheckViaJsonString1 Aliases: Required: True @@ -164,7 +202,7 @@ The resource name to validate. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckViaIdentityExpanded +Parameter Sets: CheckExpanded, CheckExpanded1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 Aliases: Required: True @@ -182,9 +220,9 @@ Type: System.String Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -194,7 +232,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString +Parameter Sets: Check, Check1, CheckExpanded, CheckExpanded1, CheckViaJsonFilePath, CheckViaJsonFilePath1, CheckViaJsonString, CheckViaJsonString1 Aliases: Required: True @@ -209,7 +247,7 @@ The type of resource. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckViaIdentityExpanded +Parameter Sets: CheckExpanded, CheckExpanded1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md deleted file mode 100644 index 8bd02de6695c..000000000000 --- a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md +++ /dev/null @@ -1,254 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/test-azsupportcommunicationsnosubscriptionnameavailability -schema: 2.0.0 ---- - -# Test-AzSupportCommunicationsNoSubscriptionNameAvailability - -## SYNOPSIS -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. - -## SYNTAX - -### CheckExpanded (Default) -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -Name - -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### Check -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### CheckViaIdentity -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -InputObject - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### CheckViaIdentityExpanded -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -InputObject -Name - -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonFilePath -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -JsonFilePath - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonString -``` -Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -JsonString - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -CheckNameAvailabilityInput -Input of CheckNameAvailability API. -To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check, CheckViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: CheckViaIdentity, CheckViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Check operation - -```yaml -Type: System.String -Parameter Sets: CheckViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Check operation - -```yaml -Type: System.String -Parameter Sets: CheckViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The resource name to validate. - -```yaml -Type: System.String -Parameter Sets: CheckExpanded, CheckViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Type -The type of resource. - -```yaml -Type: System.String -Parameter Sets: CheckExpanded, CheckViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityOutput - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md index b880229bb102..e62dcb6a21f7 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md @@ -13,30 +13,55 @@ This API should be used to check the uniqueness of the name for support ticket c ## SYNTAX -### CheckExpanded (Default) +### CheckExpanded1 (Default) ``` -Test-AzSupportTicketNameAvailability -Name -Type [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Test-AzSupportTicketNameAvailability -Name -Type [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ### Check ``` +Test-AzSupportTicketNameAvailability -SubscriptionId + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### Check1 +``` Test-AzSupportTicketNameAvailability -CheckNameAvailabilityInput - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckExpanded +``` +Test-AzSupportTicketNameAvailability -SubscriptionId -Name -Type + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaJsonFilePath ``` -Test-AzSupportTicketNameAvailability -JsonFilePath [-SubscriptionId ] +Test-AzSupportTicketNameAvailability -SubscriptionId -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CheckViaJsonFilePath1 +``` +Test-AzSupportTicketNameAvailability -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ### CheckViaJsonString ``` -Test-AzSupportTicketNameAvailability -JsonString [-SubscriptionId ] +Test-AzSupportTicketNameAvailability -SubscriptionId -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CheckViaJsonString1 +``` +Test-AzSupportTicketNameAvailability -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. @@ -73,7 +98,7 @@ To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and cr ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check +Parameter Sets: Check, Check1 Aliases: Required: True @@ -104,7 +129,7 @@ Path of Json file supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonFilePath +Parameter Sets: CheckViaJsonFilePath, CheckViaJsonFilePath1 Aliases: Required: True @@ -119,7 +144,7 @@ Json string supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonString +Parameter Sets: CheckViaJsonString, CheckViaJsonString1 Aliases: Required: True @@ -134,7 +159,7 @@ The resource name to validate. ```yaml Type: System.String -Parameter Sets: CheckExpanded +Parameter Sets: CheckExpanded, CheckExpanded1 Aliases: Required: True @@ -149,12 +174,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -164,7 +189,7 @@ The type of resource. ```yaml Type: System.String -Parameter Sets: CheckExpanded +Parameter Sets: CheckExpanded, CheckExpanded1 Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md deleted file mode 100644 index ed1bac94864a..000000000000 --- a/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md +++ /dev/null @@ -1,207 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/test-azsupportticketsnosubscriptionnameavailability -schema: 2.0.0 ---- - -# Test-AzSupportTicketsNoSubscriptionNameAvailability - -## SYNOPSIS -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. - -## SYNTAX - -### CheckExpanded (Default) -``` -Test-AzSupportTicketsNoSubscriptionNameAvailability -Name -Type [-DefaultProfile ] - [-Confirm] [-WhatIf] [] -``` - -### Check -``` -Test-AzSupportTicketsNoSubscriptionNameAvailability -CheckNameAvailabilityInput - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonFilePath -``` -Test-AzSupportTicketsNoSubscriptionNameAvailability -JsonFilePath [-DefaultProfile ] - [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonString -``` -Test-AzSupportTicketsNoSubscriptionNameAvailability -JsonString [-DefaultProfile ] - [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Check the availability of a resource name. -This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -CheckNameAvailabilityInput -Input of CheckNameAvailability API. -To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Check operation - -```yaml -Type: System.String -Parameter Sets: CheckViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Check operation - -```yaml -Type: System.String -Parameter Sets: CheckViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The resource name to validate. - -```yaml -Type: System.String -Parameter Sets: CheckExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Type -The type of resource. - -```yaml -Type: System.String -Parameter Sets: CheckExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityOutput - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md index 4dd39f1715b4..749c9b807017 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md @@ -14,9 +14,8 @@ Adds a new customer communication to an Azure support ticket. ### UpdateExpanded (Default) ``` -Update-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] - [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] +Update-AzSupportCommunication -Name -SupportTicketName [-Body ] [-Sender ] + [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded @@ -184,21 +183,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 408ca36d58a8..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,264 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportcommunicationsnosubscription -schema: 2.0.0 ---- - -# Update-AzSupportCommunicationsNoSubscription - -## SYNOPSIS -Adds a new customer communication to an Azure support ticket. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName - [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportCommunicationsNoSubscription -InputObject [-Body ] - [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentitySupportTicketExpanded -``` -Update-AzSupportCommunicationsNoSubscription -CommunicationName - -SupportTicketInputObject [-Body ] [-Sender ] [-Subject ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Adds a new customer communication to an Azure support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Body -Body of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CommunicationName -Communication name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentitySupportTicketExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Sender -Email address of the sender. -This property is required if called by a service principal. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Subject -Subject of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketInputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentitySupportTicketExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md b/src/Support/Support.Autorest/docs/Update-AzSupportFile.md index 5d5008bd0f5a..bc7f17a9b297 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportFile.md @@ -8,15 +8,14 @@ schema: 2.0.0 # Update-AzSupportFile ## SYNOPSIS -Creates a new file under a workspace for the specified subscription. +Creates a new file under a workspace. ## SYNTAX ### UpdateExpanded (Default) ``` -Update-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Update-AzSupportFile -Name -WorkspaceName [-ChunkSize ] [-FileSize ] + [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded @@ -33,7 +32,7 @@ Update-AzSupportFile -FileWorkspaceInputObject -Name ``` ## DESCRIPTION -Creates a new file under a workspace for the specified subscription. +Creates a new file under a workspace. ## EXAMPLES @@ -169,21 +168,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -WorkspaceName File workspace name. diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md deleted file mode 100644 index e9ccc8ec8d89..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,232 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportfilesnosubscription -schema: 2.0.0 ---- - -# Update-AzSupportFilesNoSubscription - -## SYNOPSIS -Creates a new file under a workspace. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportFilesNoSubscription -InputObject [-ChunkSize ] [-FileSize ] - [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityFileWorkspaceExpanded -``` -Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceInputObject - [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Creates a new file under a workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md index c9eb238c538c..81c7ca9274b7 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md @@ -13,9 +13,20 @@ In such a case, contact your support engineer to request severity update by addi ## SYNTAX -### UpdateExpanded (Default) +### UpdateExpanded1 (Default) ``` -Update-AzSupportTicket -Name [-SubscriptionId ] [-AdvancedDiagnosticConsent ] +Update-AzSupportTicket -Name [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-SecondaryConsent ] [-Severity ] [-Status ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateExpanded +``` +Update-AzSupportTicket -Name -SubscriptionId [-AdvancedDiagnosticConsent ] [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] @@ -35,6 +46,17 @@ Update-AzSupportTicket -InputObject [-AdvancedDiagnosticConse [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaIdentityExpanded1 +``` +Update-AzSupportTicket -InputObject [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-SecondaryConsent ] [-Severity ] [-Status ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. @@ -244,7 +266,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded +Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentityExpanded1 Aliases: Required: True @@ -259,7 +281,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateExpanded1 Aliases: SupportTicketName Required: True @@ -323,9 +345,9 @@ Type: System.String Parameter Sets: UpdateExpanded Aliases: -Required: False +Required: True Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md deleted file mode 100644 index a3b84a3cdeb9..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,363 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportticketsnosubscription -schema: 2.0.0 ---- - -# Update-AzSupportTicketsNoSubscription - -## SYNOPSIS -This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. -In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportTicketsNoSubscription -SupportTicketName [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-SecondaryConsent ] [-Severity ] [-Status ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportTicketsNoSubscription -InputObject [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-SecondaryConsent ] [-Severity ] [-Status ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. -In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AdvancedDiagnosticConsent -Advanced diagnostic consent to be updated on the support ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailAdditionalEmailAddress -Email addresses listed will be copied on any correspondence about the support ticket. - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailCountry -Country of the user. -This is the ISO 3166-1 alpha-3 code. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailFirstName -First name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailLastName -Last name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPhoneNumber -Phone number. -This is required if preferred contact method is phone. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredContactMethod -Preferred contact method. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredSupportLanguage -Preferred language of support from Azure. -Support languages vary based on the severity you choose for your support ticket. -Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). -Use the standard language-country code. -Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPreferredTimeZone -Time zone of the user. -This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ContactDetailPrimaryEmailAddress -Primary email address. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SecondaryConsent -This property indicates secondary consents for the support ticket -To construct, see NOTES section for SECONDARYCONSENT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISecondaryConsent[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Severity -Severity level. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Status -Status to be updated on the ticket. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscript.md similarity index 100% rename from src/Support/Support.Autorest/examples/Get-AzSupportChatTranscriptsNoSubscription.md rename to src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscript.md diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunication.md similarity index 100% rename from src/Support/Support.Autorest/examples/Get-AzSupportCommunicationsNoSubscription.md rename to src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunication.md diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - From f4149318c9afd7092434872ffdee1aa92d26b5bf Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 19 Jan 2024 15:02:20 -0500 Subject: [PATCH 06/27] edit custom file upload command to not use default subscriptionid --- .../Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 6a8c2929f522..26f7301d2ea2 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -49,7 +49,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + #[Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Azure subscription Id. ${SubscriptionId}, From a7546e447954bbf4ca7e27cb2aaa2def094f8fa1 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 19 Jan 2024 17:21:37 -0500 Subject: [PATCH 07/27] no default value for subid in custom file upload --- .../Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 | 3 ++- .../Support.Autorest/docs/New-AzSupportFileAndUpload.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 26f7301d2ea2..b6e5d61a80e3 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -49,7 +49,6 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] - #[Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Azure subscription Id. ${SubscriptionId}, @@ -198,6 +197,7 @@ process { # try{ if($SubscriptionId) { + Write-Output "going into subscription id if statement for create" New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks } else{ @@ -223,6 +223,7 @@ process { $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) #Write-Output "contents of file: " $FileContent if($SubscriptionId){ + Write-Output "going into subscription id if statement for upload" Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent } else{ diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md index 80e62722b876..1245e0534146 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md @@ -107,7 +107,7 @@ Aliases: Required: False Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` From 1f7f74122fd4186a43f850b4e8355a8a3fa55823 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 14:33:24 -0500 Subject: [PATCH 08/27] separate subscription and no subscription commands --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 73 --- .../fileWorkspaces-files.json | 50 +- .../UX/Microsoft.Support/fileWorkspaces.json | 42 +- .../supportTickets-chatTranscripts.json | 52 +- .../supportTickets-communications.json | 46 +- .../UX/Microsoft.Support/supportTickets.json | 42 +- .../custom/New-AzSupportFileAndUpload.ps1 | 1 + .../Support.Autorest/docs/Az.Support.md | 57 +- .../docs/Get-AzSupportChatTranscript.md | 51 +- ...-AzSupportChatTranscriptsNoSubscription.md | 154 +++++ .../docs/Get-AzSupportCommunication.md | 51 +- ...t-AzSupportCommunicationsNoSubscription.md | 154 +++++ .../docs/Get-AzSupportFile.md | 55 +- .../docs/Get-AzSupportFileWorkspace.md | 22 +- ...t-AzSupportFileWorkspacesNoSubscription.md | 117 ++++ .../docs/Get-AzSupportFilesNoSubscription.md | 159 +++++ .../docs/Get-AzSupportTicket.md | 35 +- ...ortTicketChatTranscriptsNoSubscription.md} | 6 +- ...portTicketCommunicationsNoSubscription.md} | 6 +- .../Get-AzSupportTicketsNoSubscription.md | 162 +++++ .../docs/Invoke-AzSupportUploadFile.md | 101 +--- ...voke-AzSupportUploadFilesNoSubscription.md | 310 ++++++++++ .../docs/New-AzSupportCommunication.md | 15 +- ...w-AzSupportCommunicationsNoSubscription.md | 215 +++++++ .../docs/New-AzSupportFile.md | 15 +- .../docs/New-AzSupportFileAndUpload.md | 2 +- .../docs/New-AzSupportFileWorkspace.md | 15 +- ...w-AzSupportFileWorkspacesNoSubscription.md | 123 ++++ .../docs/New-AzSupportFilesNoSubscription.md | 184 ++++++ .../docs/New-AzSupportTicket.md | 25 +- .../New-AzSupportTicketsNoSubscription.md | 570 ++++++++++++++++++ ...-AzSupportCommunicationNameAvailability.md | 68 +-- ...nicationsNoSubscriptionNameAvailability.md | 254 ++++++++ .../Test-AzSupportTicketNameAvailability.md | 53 +- ...rtTicketsNoSubscriptionNameAvailability.md | 207 +++++++ .../docs/Update-AzSupportCommunication.md | 20 +- ...e-AzSupportCommunicationsNoSubscription.md | 264 ++++++++ .../docs/Update-AzSupportFile.md | 24 +- .../Update-AzSupportFilesNoSubscription.md | 232 +++++++ .../docs/Update-AzSupportTicket.md | 34 +- .../Update-AzSupportTicketsNoSubscription.md | 363 +++++++++++ ...AzSupportChatTranscriptsNoSubscription.md} | 0 ...-AzSupportCommunicationsNoSubscription.md} | 0 ...t-AzSupportFileWorkspacesNoSubscription.md | 22 + .../Get-AzSupportFilesNoSubscription.md | 22 + ...portTicketChatTranscriptsNoSubscription.md | 22 + ...pportTicketCommunicationsNoSubscription.md | 22 + .../Get-AzSupportTicketsNoSubscription.md | 22 + ...voke-AzSupportUploadFilesNoSubscription.md | 22 + ...w-AzSupportCommunicationsNoSubscription.md | 22 + ...w-AzSupportFileWorkspacesNoSubscription.md | 22 + .../New-AzSupportFilesNoSubscription.md | 22 + .../New-AzSupportTicketsNoSubscription.md | 22 + ...nicationsNoSubscriptionNameAvailability.md | 22 + ...rtTicketsNoSubscriptionNameAvailability.md | 22 + ...e-AzSupportCommunicationsNoSubscription.md | 22 + .../Update-AzSupportFilesNoSubscription.md | 22 + .../Update-AzSupportTicketsNoSubscription.md | 22 + 59 files changed, 4163 insertions(+), 598 deletions(-) create mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md rename src/Support/Support.Autorest/docs/{Get-AzSupportTicketChatTranscript.md => Get-AzSupportTicketChatTranscriptsNoSubscription.md} (89%) rename src/Support/Support.Autorest/docs/{Get-AzSupportTicketCommunication.md => Get-AzSupportTicketCommunicationsNoSubscription.md} (94%) create mode 100644 src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md create mode 100644 src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md create mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md rename src/Support/Support.Autorest/examples/{Get-AzSupportTicketChatTranscript.md => Get-AzSupportChatTranscriptsNoSubscription.md} (100%) rename src/Support/Support.Autorest/examples/{Get-AzSupportTicketCommunication.md => Get-AzSupportCommunicationsNoSubscription.md} (100%) create mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md create mode 100644 src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md create mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 95c06010023e..a9bec25bd711 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportCommunication', 'Get-AzSupportFile', 'Get-AzSupportFileWorkspace', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscript', 'Get-AzSupportTicketCommunication', 'Invoke-AzSupportUploadFile', 'New-AzSupportCommunication', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFileWorkspace', 'New-AzSupportTicket', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportFile', 'Update-AzSupportTicket' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index cb26b4ad4d67..639739d70b78 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -55,79 +55,6 @@ subject-prefix: $(service-name) # nested-object-to-string: true directive: - # Remove the default value of subscriptionId - - from: source-file-csharp - where: $ - transform: $ = $.replace(' [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(\n Name = @"",\n Description =@"",\n Script = @"(Get-AzContext).Subscription.Id",\n SetCondition = @"")]\n', '') - # Rename the operation ids of NoSubscription to make them can be combined automatically - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/checkNameAvailability"].post' - transform: > - $["operationId"] = "SupportTickets_CheckNameAvailabilityWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets"].get' - transform: > - $["operationId"] = "SupportTickets_ListWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].get' - transform: > - $["operationId"] = "SupportTickets_GetWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].patch' - transform: > - $["operationId"] = "SupportTickets_UpdateWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}"].put' - transform: > - $["operationId"] = "SupportTickets_CreateWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability"].post' - transform: > - $["operationId"] = "Communications_CheckNameAvailabilityWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get' - transform: > - $["operationId"] = "SupportTicketCommunications_ListWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].get' - transform: > - $["operationId"] = "Communications_GetWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}"].put' - transform: > - $["operationId"] = "Communications_CreateWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get' - transform: > - $["operationId"] = "SupportTicketChatTranscripts_ListWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}"].get' - transform: > - $["operationId"] = "ChatTranscripts_GetWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].get' - transform: > - $["operationId"] = "FileWorkspaces_GetWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}"].put' - transform: > - $["operationId"] = "FileWorkspaces_CreateWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files"].get' - transform: > - $["operationId"] = "Files_ListWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].get' - transform: > - $["operationId"] = "Files_GetWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}"].put' - transform: > - $["operationId"] = "Files_CreateWithNoSubscriptionId"; - - from: swagger-document - where: '$.paths["/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload"].post' - transform: > - $["operationId"] = "Files_UploadWithNoSubscriptionId"; - where: model-name: ProblemClassification set: diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json index 3ae07a00d97f..5a9261a88b67 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json @@ -6,25 +6,18 @@ }, "commands": [ { - "name": "Get-AzSupportFile", + "name": "Get-AzSupportFilesNoSubscription", "description": "Returns details of a specific file in a work space.", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", + "path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", "help": { "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfile" + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfilesnosubscription" }, "parameterSets": [ { "parameters": [ - "-Name ", - "[-SubscriptionId ]", - "-WorkspaceName " - ] - }, - { - "parameters": [ - "-Name ", - "-WorkspaceName " + "-FileName ", + "-FileWorkspaceName " ] } ] @@ -34,19 +27,36 @@ "description": "Returns details of a specific file in a work space.", "parameters": [ { - "name": "-Name", + "name": "-FileName", "value": "[Path.fileName]" }, { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, - { - "name": "-WorkspaceName", + "name": "-FileWorkspaceName", "value": "[Path.fileWorkspaceName]" } ] + } + ] + }, + { + "name": "Get-AzSupportFile", + "description": "Returns details of a specific file in a work space.", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfile" }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "[-SubscriptionId ]", + "-WorkspaceName " + ] + } + ] + }, + "examples": [ { "description": "Returns details of a specific file in a work space.", "parameters": [ @@ -54,6 +64,10 @@ "name": "-Name", "value": "[Path.fileName]" }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, { "name": "-WorkspaceName", "value": "[Path.fileWorkspaceName]" diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json index a9a072ab072b..6527b56a9a05 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json @@ -5,6 +5,34 @@ "url": "https://learn.microsoft.com/powershell/module/az.support" }, "commands": [ + { + "name": "Get-AzSupportFileWorkspacesNoSubscription", + "description": "Gets details for a specific file workspace.", + "path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspacesnosubscription" + }, + "parameterSets": [ + { + "parameters": [ + "-FileWorkspaceName " + ] + } + ] + }, + "examples": [ + { + "description": "Gets details for a specific file workspace.", + "parameters": [ + { + "name": "-FileWorkspaceName", + "value": "[Path.fileWorkspaceName]" + } + ] + } + ] + }, { "name": "Get-AzSupportFileWorkspace", "description": "Gets details for a specific file workspace in an Azure subscription.", @@ -19,11 +47,6 @@ "-Name ", "[-SubscriptionId ]" ] - }, - { - "parameters": [ - "-Name " - ] } ] }, @@ -40,15 +63,6 @@ "value": "[Path.subscriptionId]" } ] - }, - { - "description": "Gets details for a specific file workspace.", - "parameters": [ - { - "name": "-Name", - "value": "[Path.fileWorkspaceName]" - } - ] } ] } diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json index 87d5f6d0b718..9257bc37a5f1 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json @@ -6,24 +6,17 @@ }, "commands": [ { - "name": "Get-AzSupportChatTranscript", - "description": "Returns chatTranscript details for a support ticket under a subscription.", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}", + "name": "Get-AzSupportChatTranscriptsNoSubscription", + "description": "Returns chatTranscript details for a no subscription support ticket.", + "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}", "help": { "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscript" + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscriptsnosubscription" }, "parameterSets": [ { "parameters": [ - "-Name ", - "[-SubscriptionId ]", - "-SupportTicketName " - ] - }, - { - "parameters": [ - "-Name ", + "-ChatTranscriptName ", "-SupportTicketName " ] } @@ -31,29 +24,50 @@ }, "examples": [ { - "description": "Returns chatTranscript details for a support ticket under a subscription.", + "description": "Returns chatTranscript details for a no subscription support ticket.", "parameters": [ { - "name": "-Name", + "name": "-ChatTranscriptName", "value": "[Path.chatTranscriptName]" }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" } ] + } + ] + }, + { + "name": "Get-AzSupportChatTranscript", + "description": "Returns chatTranscript details for a support ticket under a subscription.", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscript" }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "[-SubscriptionId ]", + "-SupportTicketName " + ] + } + ] + }, + "examples": [ { - "description": "Returns chatTranscript details for a no subscription support ticket.", + "description": "Returns chatTranscript details for a support ticket under a subscription.", "parameters": [ { "name": "-Name", "value": "[Path.chatTranscriptName]" }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json index 72b6437d961a..81a87c00be93 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json @@ -6,24 +6,17 @@ }, "commands": [ { - "name": "Get-AzSupportCommunication", + "name": "Get-AzSupportCommunicationsNoSubscription", "description": "Returns communication details for a support ticket.", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", + "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", "help": { "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunication" + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunicationsnosubscription" }, "parameterSets": [ { "parameters": [ - "-Name ", - "[-SubscriptionId ]", - "-SupportTicketName " - ] - }, - { - "parameters": [ - "-Name ", + "-CommunicationName ", "-SupportTicketName " ] } @@ -34,19 +27,36 @@ "description": "Returns communication details for a support ticket.", "parameters": [ { - "name": "-Name", + "name": "-CommunicationName", "value": "[Path.communicationName]" }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" } ] + } + ] + }, + { + "name": "Get-AzSupportCommunication", + "description": "Returns communication details for a support ticket.", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunication" }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "[-SubscriptionId ]", + "-SupportTicketName " + ] + } + ] + }, + "examples": [ { "description": "Returns communication details for a support ticket.", "parameters": [ @@ -54,6 +64,10 @@ "name": "-Name", "value": "[Path.communicationName]" }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, { "name": "-SupportTicketName", "value": "[Path.supportTicketName]" diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json index 30d3711e96db..a3f9f8a89439 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets.json @@ -5,6 +5,34 @@ "url": "https://learn.microsoft.com/powershell/module/az.support" }, "commands": [ + { + "name": "Get-AzSupportTicketsNoSubscription", + "description": "Gets details for a specific support ticket.\nSupport ticket data is available for 18 months after ticket creation.\nIf a ticket was created more than 18 months ago, a request for data might cause an error.", + "path": "/providers/Microsoft.Support/supportTickets/{supportTicketName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketsnosubscription" + }, + "parameterSets": [ + { + "parameters": [ + "-SupportTicketName " + ] + } + ] + }, + "examples": [ + { + "description": "Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.", + "parameters": [ + { + "name": "-SupportTicketName", + "value": "[Path.supportTicketName]" + } + ] + } + ] + }, { "name": "Get-AzSupportTicket", "description": "Get ticket details for an Azure subscription.\nSupport ticket data is available for 18 months after ticket creation.\nIf a ticket was created more than 18 months ago, a request for data might cause an error.", @@ -19,11 +47,6 @@ "-Name ", "[-SubscriptionId ]" ] - }, - { - "parameters": [ - "-Name " - ] } ] }, @@ -40,15 +63,6 @@ "value": "[Path.subscriptionId]" } ] - }, - { - "description": "Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.", - "parameters": [ - { - "name": "-Name", - "value": "[Path.supportTicketName]" - } - ] } ] } diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index b6e5d61a80e3..14fe7b592e5b 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -49,6 +49,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Azure subscription Id. ${SubscriptionId}, diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 9e3c656aa269..51b77f166710 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -14,15 +14,27 @@ Microsoft Azure PowerShell: Support cmdlets ### [Get-AzSupportChatTranscript](Get-AzSupportChatTranscript.md) Returns chatTranscript details for a support ticket under a subscription. +### [Get-AzSupportChatTranscriptsNoSubscription](Get-AzSupportChatTranscriptsNoSubscription.md) +Returns chatTranscript details for a no subscription support ticket. + ### [Get-AzSupportCommunication](Get-AzSupportCommunication.md) Returns communication details for a support ticket. +### [Get-AzSupportCommunicationsNoSubscription](Get-AzSupportCommunicationsNoSubscription.md) +Returns communication details for a support ticket. + ### [Get-AzSupportFile](Get-AzSupportFile.md) Returns details of a specific file in a work space. +### [Get-AzSupportFilesNoSubscription](Get-AzSupportFilesNoSubscription.md) +Returns details of a specific file in a work space. + ### [Get-AzSupportFileWorkspace](Get-AzSupportFileWorkspace.md) Gets details for a specific file workspace in an Azure subscription. +### [Get-AzSupportFileWorkspacesNoSubscription](Get-AzSupportFileWorkspacesNoSubscription.md) +Gets details for a specific file workspace. + ### [Get-AzSupportProblemClassification](Get-AzSupportProblemClassification.md) Get problem classification details for a specific Azure service. @@ -34,10 +46,10 @@ Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. -### [Get-AzSupportTicketChatTranscript](Get-AzSupportTicketChatTranscript.md) +### [Get-AzSupportTicketChatTranscriptsNoSubscription](Get-AzSupportTicketChatTranscriptsNoSubscription.md) Lists all chat transcripts for a support ticket -### [Get-AzSupportTicketCommunication](Get-AzSupportTicketCommunication.md) +### [Get-AzSupportTicketCommunicationsNoSubscription](Get-AzSupportTicketCommunicationsNoSubscription.md) Lists all communications (attachments not included) for a support ticket. \
\ You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. @@ -45,21 +57,38 @@ Output will be a paged result with _nextLink_, using which you can retrieve the \
\
Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. +### [Get-AzSupportTicketsNoSubscription](Get-AzSupportTicketsNoSubscription.md) +Gets details for a specific support ticket. +Support ticket data is available for 18 months after ticket creation. +If a ticket was created more than 18 months ago, a request for data might cause an error. + ### [Invoke-AzSupportUploadFile](Invoke-AzSupportUploadFile.md) This API allows you to upload content to a file +### [Invoke-AzSupportUploadFilesNoSubscription](Invoke-AzSupportUploadFilesNoSubscription.md) +This API allows you to upload content to a file + ### [New-AzSupportCommunication](New-AzSupportCommunication.md) Adds a new customer communication to an Azure support ticket. +### [New-AzSupportCommunicationsNoSubscription](New-AzSupportCommunicationsNoSubscription.md) +Adds a new customer communication to an Azure support ticket. + ### [New-AzSupportFile](New-AzSupportFile.md) Creates a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) Creates and uploads a new file under a workspace for the specified subscription. +### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) +Creates a new file under a workspace. + ### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) Creates a new file workspace for the specified subscription. +### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md) +Creates a new file workspace. + ### [New-AzSupportTicket](New-AzSupportTicket.md) Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. @@ -69,21 +98,45 @@ The primary token will be from the tenant for whom a support ticket is being rai Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant. +### [New-AzSupportTicketsNoSubscription](New-AzSupportTicketsNoSubscription.md) +Creates a new support ticket for Billing, and Subscription Management issues. +Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. +To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. +The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
+ ### [Test-AzSupportCommunicationNameAvailability](Test-AzSupportCommunicationNameAvailability.md) Check the availability of a resource name. This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. +### [Test-AzSupportCommunicationsNoSubscriptionNameAvailability](Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md) +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. + ### [Test-AzSupportTicketNameAvailability](Test-AzSupportTicketNameAvailability.md) Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. +### [Test-AzSupportTicketsNoSubscriptionNameAvailability](Test-AzSupportTicketsNoSubscriptionNameAvailability.md) +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. + ### [Update-AzSupportCommunication](Update-AzSupportCommunication.md) Adds a new customer communication to an Azure support ticket. +### [Update-AzSupportCommunicationsNoSubscription](Update-AzSupportCommunicationsNoSubscription.md) +Adds a new customer communication to an Azure support ticket. + ### [Update-AzSupportFile](Update-AzSupportFile.md) +Creates a new file under a workspace for the specified subscription. + +### [Update-AzSupportFilesNoSubscription](Update-AzSupportFilesNoSubscription.md) Creates a new file under a workspace. ### [Update-AzSupportTicket](Update-AzSupportTicket.md) This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. +### [Update-AzSupportTicketsNoSubscription](Update-AzSupportTicketsNoSubscription.md) +This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. +In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md index 6ccb2eec1982..4eea13a1512c 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md @@ -12,15 +12,15 @@ Returns chatTranscript details for a support ticket under a subscription. ## SYNTAX -### Get1 (Default) +### List (Default) ``` -Get-AzSupportChatTranscript -Name -SupportTicketName [-DefaultProfile ] - [] +Get-AzSupportChatTranscript -SupportTicketName [-SubscriptionId ] + [-DefaultProfile ] [] ``` ### Get ``` -Get-AzSupportChatTranscript -Name -SubscriptionId -SupportTicketName +Get-AzSupportChatTranscript -Name -SupportTicketName [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -29,29 +29,12 @@ Get-AzSupportChatTranscript -Name -SubscriptionId -SupportTi Get-AzSupportChatTranscript -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity1 -``` -Get-AzSupportChatTranscript -InputObject [-DefaultProfile ] [] -``` - ### GetViaIdentitySupportTicket ``` Get-AzSupportChatTranscript -Name -SupportTicketInputObject [-DefaultProfile ] [] ``` -### GetViaIdentitySupportTicket1 -``` -Get-AzSupportChatTranscript -Name -SupportTicket1InputObject - [-DefaultProfile ] [] -``` - -### List -``` -Get-AzSupportChatTranscript -SubscriptionId -SupportTicketName - [-DefaultProfile ] [] -``` - ## DESCRIPTION Returns chatTranscript details for a support ticket under a subscription. @@ -103,7 +86,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity, GetViaIdentity1 +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -118,7 +101,7 @@ ChatTranscript name. ```yaml Type: System.String -Parameter Sets: Get, Get1, GetViaIdentitySupportTicket, GetViaIdentitySupportTicket1 +Parameter Sets: Get, GetViaIdentitySupportTicket Aliases: ChatTranscriptName Required: True @@ -136,29 +119,13 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` -### -SupportTicket1InputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKET1INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentitySupportTicket1 -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. @@ -180,7 +147,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get, Get1, List +Parameter Sets: Get, List Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md new file mode 100644 index 000000000000..f302ca238726 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscriptsNoSubscription.md @@ -0,0 +1,154 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportchattranscriptsnosubscription +schema: 2.0.0 +--- + +# Get-AzSupportChatTranscriptsNoSubscription + +## SYNOPSIS +Returns chatTranscript details for a no subscription support ticket. + +## SYNTAX + +### Get (Default) +``` +Get-AzSupportChatTranscriptsNoSubscription -ChatTranscriptName -SupportTicketName + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzSupportChatTranscriptsNoSubscription -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentitySupportTicket +``` +Get-AzSupportChatTranscriptsNoSubscription -ChatTranscriptName + -SupportTicketInputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns chatTranscript details for a no subscription support ticket. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ChatTranscriptName +ChatTranscript name. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentitySupportTicket +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketInputObject +Identity Parameter +To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentitySupportTicket +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IChatTranscriptDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md index 314ebeca7e94..b617365ad91d 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md @@ -12,15 +12,15 @@ Returns communication details for a support ticket. ## SYNTAX -### Get1 (Default) +### List (Default) ``` -Get-AzSupportCommunication -Name -SupportTicketName [-DefaultProfile ] - [] +Get-AzSupportCommunication -SupportTicketName [-SubscriptionId ] [-Filter ] + [-Top ] [-DefaultProfile ] [] ``` ### Get ``` -Get-AzSupportCommunication -Name -SubscriptionId -SupportTicketName +Get-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -29,29 +29,12 @@ Get-AzSupportCommunication -Name -SubscriptionId -SupportTic Get-AzSupportCommunication -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity1 -``` -Get-AzSupportCommunication -InputObject [-DefaultProfile ] [] -``` - ### GetViaIdentitySupportTicket ``` Get-AzSupportCommunication -Name -SupportTicketInputObject [-DefaultProfile ] [] ``` -### GetViaIdentitySupportTicket1 -``` -Get-AzSupportCommunication -Name -SupportTicket1InputObject - [-DefaultProfile ] [] -``` - -### List -``` -Get-AzSupportCommunication -SubscriptionId -SupportTicketName [-Filter ] - [-Top ] [-DefaultProfile ] [] -``` - ## DESCRIPTION Returns communication details for a support ticket. @@ -121,7 +104,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity, GetViaIdentity1 +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -136,7 +119,7 @@ Communication name. ```yaml Type: System.String -Parameter Sets: Get, Get1, GetViaIdentitySupportTicket, GetViaIdentitySupportTicket1 +Parameter Sets: Get, GetViaIdentitySupportTicket Aliases: CommunicationName Required: True @@ -154,29 +137,13 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` -### -SupportTicket1InputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKET1INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentitySupportTicket1 -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. @@ -198,7 +165,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get, Get1, List +Parameter Sets: Get, List Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md new file mode 100644 index 000000000000..d2893ca78b85 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Get-AzSupportCommunicationsNoSubscription.md @@ -0,0 +1,154 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportcommunicationsnosubscription +schema: 2.0.0 +--- + +# Get-AzSupportCommunicationsNoSubscription + +## SYNOPSIS +Returns communication details for a support ticket. + +## SYNTAX + +### Get (Default) +``` +Get-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzSupportCommunicationsNoSubscription -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentitySupportTicket +``` +Get-AzSupportCommunicationsNoSubscription -CommunicationName + -SupportTicketInputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns communication details for a support ticket. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CommunicationName +Communication name. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentitySupportTicket +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketInputObject +Identity Parameter +To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentitySupportTicket +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md index 8379b8ba8f3a..cbfefafc66b7 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md @@ -12,50 +12,29 @@ Returns details of a specific file in a work space. ## SYNTAX -### List1 (Default) +### List (Default) ``` -Get-AzSupportFile -WorkspaceName [-DefaultProfile ] [] +Get-AzSupportFile -WorkspaceName [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### Get ``` -Get-AzSupportFile -Name -SubscriptionId -WorkspaceName +Get-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-DefaultProfile ] [] ``` -### Get1 -``` -Get-AzSupportFile -Name -WorkspaceName [-DefaultProfile ] [] -``` - ### GetViaIdentity ``` Get-AzSupportFile -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity1 -``` -Get-AzSupportFile -InputObject [-DefaultProfile ] [] -``` - ### GetViaIdentityFileWorkspace ``` Get-AzSupportFile -FileWorkspaceInputObject -Name [-DefaultProfile ] [] ``` -### GetViaIdentityFileWorkspace1 -``` -Get-AzSupportFile -FileWorkspace1InputObject -Name [-DefaultProfile ] - [] -``` - -### List -``` -Get-AzSupportFile -SubscriptionId -WorkspaceName [-DefaultProfile ] - [] -``` - ## DESCRIPTION Returns details of a specific file in a work space. @@ -101,22 +80,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FileWorkspace1InputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACE1INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentityFileWorkspace1 -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -FileWorkspaceInputObject Identity Parameter To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. @@ -139,7 +102,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity, GetViaIdentity1 +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -154,7 +117,7 @@ File Name ```yaml Type: System.String -Parameter Sets: Get, Get1, GetViaIdentityFileWorkspace, GetViaIdentityFileWorkspace1 +Parameter Sets: Get, GetViaIdentityFileWorkspace Aliases: FileName Required: True @@ -172,9 +135,9 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -184,7 +147,7 @@ File Workspace Name ```yaml Type: System.String -Parameter Sets: Get, Get1, List, List1 +Parameter Sets: Get, List Aliases: FileWorkspaceName Required: True diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md index a6bff3344831..da2647de2602 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md @@ -12,14 +12,9 @@ Gets details for a specific file workspace in an Azure subscription. ## SYNTAX -### Get1 (Default) +### Get (Default) ``` -Get-AzSupportFileWorkspace -Name [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzSupportFileWorkspace -Name -SubscriptionId [-DefaultProfile ] +Get-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -28,11 +23,6 @@ Get-AzSupportFileWorkspace -Name -SubscriptionId [-DefaultPr Get-AzSupportFileWorkspace -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity1 -``` -Get-AzSupportFileWorkspace -InputObject [-DefaultProfile ] [] -``` - ## DESCRIPTION Gets details for a specific file workspace in an Azure subscription. @@ -84,7 +74,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity, GetViaIdentity1 +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -99,7 +89,7 @@ File Workspace Name ```yaml Type: System.String -Parameter Sets: Get, Get1 +Parameter Sets: Get Aliases: FileWorkspaceName Required: True @@ -117,9 +107,9 @@ Type: System.String[] Parameter Sets: Get Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..8694b5cc60ca --- /dev/null +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,117 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspacesnosubscription +schema: 2.0.0 +--- + +# Get-AzSupportFileWorkspacesNoSubscription + +## SYNOPSIS +Gets details for a specific file workspace. + +## SYNTAX + +### Get (Default) +``` +Get-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzSupportFileWorkspacesNoSubscription -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets details for a specific file workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File Workspace Name + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..f6180f653c2a --- /dev/null +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md @@ -0,0 +1,159 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportfilesnosubscription +schema: 2.0.0 +--- + +# Get-AzSupportFilesNoSubscription + +## SYNOPSIS +Returns details of a specific file in a work space. + +## SYNTAX + +### List (Default) +``` +Get-AzSupportFilesNoSubscription -FileWorkspaceName [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzSupportFilesNoSubscription -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityFileWorkspace +``` +Get-AzSupportFilesNoSubscription -FileName -FileWorkspaceInputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns details of a specific file in a work space. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileName +File Name + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityFileWorkspace +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceInputObject +Identity Parameter +To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentityFileWorkspace +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File Workspace Name + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md index a58fb71d656a..f128ebbd31ef 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicket.md @@ -14,38 +14,23 @@ If a ticket was created more than 18 months ago, a request for data might cause ## SYNTAX -### List1 (Default) +### List (Default) ``` -Get-AzSupportTicket [-Filter ] [-Top ] [-DefaultProfile ] [] +Get-AzSupportTicket [-SubscriptionId ] [-Filter ] [-Top ] + [-DefaultProfile ] [] ``` ### Get ``` -Get-AzSupportTicket -Name -SubscriptionId [-DefaultProfile ] +Get-AzSupportTicket -Name [-SubscriptionId ] [-DefaultProfile ] [] ``` -### Get1 -``` -Get-AzSupportTicket -Name [-DefaultProfile ] [] -``` - ### GetViaIdentity ``` Get-AzSupportTicket -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity1 -``` -Get-AzSupportTicket -InputObject [-DefaultProfile ] [] -``` - -### List -``` -Get-AzSupportTicket -SubscriptionId [-Filter ] [-Top ] [-DefaultProfile ] - [] -``` - ## DESCRIPTION Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. @@ -103,7 +88,7 @@ When using both filters, combine them using the logical 'AND'. ```yaml Type: System.String -Parameter Sets: List, List1 +Parameter Sets: List Aliases: Required: False @@ -119,7 +104,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: GetViaIdentity, GetViaIdentity1 +Parameter Sets: GetViaIdentity Aliases: Required: True @@ -134,7 +119,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Get, Get1 +Parameter Sets: Get Aliases: SupportTicketName Required: True @@ -152,9 +137,9 @@ Type: System.String[] Parameter Sets: Get, List Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -165,7 +150,7 @@ Default is 25 and max is 100. ```yaml Type: System.Int32 -Parameter Sets: List, List1 +Parameter Sets: List Aliases: Required: False diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md similarity index 89% rename from src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md rename to src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md index 972faf71c1e1..9ccf242ecaa1 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscript.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicketChatTranscriptsNoSubscription.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketchattranscript +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketchattranscriptsnosubscription schema: 2.0.0 --- -# Get-AzSupportTicketChatTranscript +# Get-AzSupportTicketChatTranscriptsNoSubscription ## SYNOPSIS Lists all chat transcripts for a support ticket @@ -13,7 +13,7 @@ Lists all chat transcripts for a support ticket ## SYNTAX ``` -Get-AzSupportTicketChatTranscript -SupportTicketName [-DefaultProfile ] +Get-AzSupportTicketChatTranscriptsNoSubscription -SupportTicketName [-DefaultProfile ] [] ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md similarity index 94% rename from src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md rename to src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md index ee87e9eb4cd0..b4670eeb486d 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunication.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicketCommunicationsNoSubscription.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketcommunication +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketcommunicationsnosubscription schema: 2.0.0 --- -# Get-AzSupportTicketCommunication +# Get-AzSupportTicketCommunicationsNoSubscription ## SYNOPSIS Lists all communications (attachments not included) for a support ticket. @@ -18,7 +18,7 @@ If a ticket was created more than 18 months ago, a request for data might cause ## SYNTAX ``` -Get-AzSupportTicketCommunication -SupportTicketName [-Filter ] [-Top ] +Get-AzSupportTicketCommunicationsNoSubscription -SupportTicketName [-Filter ] [-Top ] [-DefaultProfile ] [] ``` diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..c913f9ce8ba8 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Get-AzSupportTicketsNoSubscription.md @@ -0,0 +1,162 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/get-azsupportticketsnosubscription +schema: 2.0.0 +--- + +# Get-AzSupportTicketsNoSubscription + +## SYNOPSIS +Gets details for a specific support ticket. +Support ticket data is available for 18 months after ticket creation. +If a ticket was created more than 18 months ago, a request for data might cause an error. + +## SYNTAX + +### List (Default) +``` +Get-AzSupportTicketsNoSubscription [-Filter ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzSupportTicketsNoSubscription -SupportTicketName [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzSupportTicketsNoSubscription -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets details for a specific support ticket. +Support ticket data is available for 18 months after ticket creation. +If a ticket was created more than 18 months ago, a request for data might cause an error. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +The filter to apply on the operation. +We support 'odata v4.0' filter semantics. +\
Learn more\ \
\Status\ , \ServiceId\, and \ProblemClassificationId\ filters can only be used with 'eq' operator. +For \CreatedDate\ filter, the supported operators are 'gt' and 'ge'. +When using both filters, combine them using the logical 'AND'. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The number of values to return in the collection. +Default is 25 and max is 100. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md index 1ebb3b329cfb..809e2f394c4f 100644 --- a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md +++ b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md @@ -12,29 +12,17 @@ This API allows you to upload content to a file ## SYNTAX -### UploadExpanded1 (Default) +### UploadExpanded (Default) ``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName [-ChunkIndex ] - [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +Invoke-AzSupportUploadFile -FileName -FileWorkspaceName [-SubscriptionId ] + [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] ``` ### Upload ``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### Upload1 -``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -UploadFile - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadExpanded -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### UploadViaIdentity @@ -43,36 +31,18 @@ Invoke-AzSupportUploadFile -InputObject -UploadFile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### UploadViaIdentity1 -``` -Invoke-AzSupportUploadFile -InputObject -UploadFile - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - ### UploadViaIdentityExpanded ``` Invoke-AzSupportUploadFile -InputObject [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### UploadViaIdentityExpanded1 -``` -Invoke-AzSupportUploadFile -InputObject [-ChunkIndex ] [-Content ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - ### UploadViaIdentityFileWorkspace ``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### UploadViaIdentityFileWorkspace1 -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspace1InputObject - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - ### UploadViaIdentityFileWorkspaceExpanded ``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject @@ -80,35 +50,16 @@ Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject ] ``` -### UploadViaIdentityFileWorkspaceExpanded1 -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - ### UploadViaJsonFilePath ``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId - -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaJsonFilePath1 -``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonFilePath - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### UploadViaJsonString ``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -SubscriptionId - -JsonString [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaJsonString1 -``` Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonString - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -145,7 +96,7 @@ Index of the uploaded chunk (Index starts at 0) ```yaml Type: System.Single -Parameter Sets: UploadExpanded, UploadExpanded1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 +Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded Aliases: Required: False @@ -160,7 +111,7 @@ File Content in base64 encoded format ```yaml Type: System.String -Parameter Sets: UploadExpanded, UploadExpanded1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 +Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded Aliases: Required: False @@ -191,7 +142,7 @@ File Name ```yaml Type: System.String -Parameter Sets: Upload, Upload1, UploadExpanded, UploadExpanded1, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspace1, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1, UploadViaJsonFilePath, UploadViaJsonFilePath1, UploadViaJsonString, UploadViaJsonString1 +Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString Aliases: Required: True @@ -201,29 +152,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FileWorkspace1InputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACE1INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace1 -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -FileWorkspaceInputObject Identity Parameter To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaIdentityFileWorkspaceExpanded1 +Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded Aliases: Required: True @@ -238,7 +173,7 @@ File WorkspaceName ```yaml Type: System.String -Parameter Sets: Upload, Upload1, UploadExpanded, UploadExpanded1, UploadViaJsonFilePath, UploadViaJsonFilePath1, UploadViaJsonString, UploadViaJsonString1 +Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString Aliases: Required: True @@ -254,7 +189,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentity, UploadViaIdentity1, UploadViaIdentityExpanded, UploadViaIdentityExpanded1 +Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded Aliases: Required: True @@ -269,7 +204,7 @@ Path of Json file supplied to the Upload operation ```yaml Type: System.String -Parameter Sets: UploadViaJsonFilePath, UploadViaJsonFilePath1 +Parameter Sets: UploadViaJsonFilePath Aliases: Required: True @@ -284,7 +219,7 @@ Json string supplied to the Upload operation ```yaml Type: System.String -Parameter Sets: UploadViaJsonString, UploadViaJsonString1 +Parameter Sets: UploadViaJsonString Aliases: Required: True @@ -317,9 +252,9 @@ Type: System.String Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -330,7 +265,7 @@ To construct, see NOTES section for UPLOADFILE properties and create a hash tabl ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile -Parameter Sets: Upload, Upload1, UploadViaIdentity, UploadViaIdentity1, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspace1 +Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md new file mode 100644 index 000000000000..f9454747463c --- /dev/null +++ b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md @@ -0,0 +1,310 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/invoke-azsupportuploadfilesnosubscription +schema: 2.0.0 +--- + +# Invoke-AzSupportUploadFilesNoSubscription + +## SYNOPSIS +This API allows you to upload content to a file + +## SYNTAX + +### UploadExpanded (Default) +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName + [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### Upload +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName + -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaIdentity +``` +Invoke-AzSupportUploadFilesNoSubscription -InputObject -UploadFile + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaIdentityExpanded +``` +Invoke-AzSupportUploadFilesNoSubscription -InputObject [-ChunkIndex ] + [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaIdentityFileWorkspace +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject + -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaIdentityFileWorkspaceExpanded +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject + [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### UploadViaJsonFilePath +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName + -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UploadViaJsonString +``` +Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName -JsonString + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This API allows you to upload content to a file + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ChunkIndex +Index of the uploaded chunk (Index starts at 0) + +```yaml +Type: System.Single +Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Content +File Content in base64 encoded format + +```yaml +Type: System.String +Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileName +File Name + +```yaml +Type: System.String +Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceInputObject +Identity Parameter +To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File WorkspaceName + +```yaml +Type: System.String +Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Upload operation + +```yaml +Type: System.String +Parameter Sets: UploadViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Upload operation + +```yaml +Type: System.String +Parameter Sets: UploadViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UploadFile +File content associated with the file under a workspace. +To construct, see NOTES section for UPLOADFILE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile +Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md index 3ccd0d729685..18b58f883ec9 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md @@ -12,15 +12,8 @@ Adds a new customer communication to an Azure support ticket. ## SYNTAX -### CreateExpanded1 (Default) ``` -New-AzSupportCommunication -Name -SupportTicketName [-Body ] [-Sender ] - [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### CreateExpanded -``` -New-AzSupportCommunication -Name -SubscriptionId -SupportTicketName +New-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -166,12 +159,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md new file mode 100644 index 000000000000..9a4d1ee6b6ac --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md @@ -0,0 +1,215 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportcommunicationsnosubscription +schema: 2.0.0 +--- + +# New-AzSupportCommunicationsNoSubscription + +## SYNOPSIS +Adds a new customer communication to an Azure support ticket. + +## SYNTAX + +``` +New-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName + [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Adds a new customer communication to an Azure support ticket. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Body +Body of the communication. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommunicationName +Communication name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sender +Email address of the sender. +This property is required if called by a service principal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Subject +Subject of the communication. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFile.md b/src/Support/Support.Autorest/docs/New-AzSupportFile.md index 4b3a5ef688f0..4d1bfa961b78 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFile.md @@ -12,15 +12,8 @@ Creates a new file under a workspace for the specified subscription. ## SYNTAX -### CreateExpanded1 (Default) ``` -New-AzSupportFile -Name -WorkspaceName [-ChunkSize ] [-FileSize ] - [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CreateExpanded -``` -New-AzSupportFile -Name -SubscriptionId -WorkspaceName [-ChunkSize ] +New-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -135,12 +128,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md index 1245e0534146..80e62722b876 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md @@ -107,7 +107,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md index c83aff17c46b..1f1da952b27e 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md @@ -12,15 +12,8 @@ Creates a new file workspace for the specified subscription. ## SYNTAX -### Create1 (Default) ``` -New-AzSupportFileWorkspace -Name [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### Create -``` -New-AzSupportFileWorkspace -Name -SubscriptionId [-DefaultProfile ] [-Confirm] +New-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -89,12 +82,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: Create +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..cf44505a15fb --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,123 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription +schema: 2.0.0 +--- + +# New-AzSupportFileWorkspacesNoSubscription + +## SYNOPSIS +Creates a new file workspace. + +## SYNTAX + +``` +New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..5a47e1fd99e1 --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md @@ -0,0 +1,184 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfilesnosubscription +schema: 2.0.0 +--- + +# New-AzSupportFilesNoSubscription + +## SYNOPSIS +Creates a new file under a workspace. + +## SYNTAX + +``` +New-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] + [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates a new file under a workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ChunkSize +Size of each chunk + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileName +File name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileSize +Size of the file to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NumberOfChunk +Number of chunks to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md index a5cf76800274..26a0ccbbf6d8 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md @@ -18,25 +18,8 @@ The auxiliary token will be from the Cloud solution provider (CSP) partner tenan ## SYNTAX -### CreateExpanded1 (Default) ``` -New-AzSupportTicket -Name [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-Description ] [-FileWorkspaceName ] [-ProblemClassificationId ] - [-ProblemScopingQuestion ] [-ProblemStartTime ] - [-QuotaTicketDetailQuotaChangeRequest ] - [-QuotaTicketDetailQuotaChangeRequestSubType ] [-QuotaTicketDetailQuotaChangeRequestVersion ] - [-Require24X7Response] [-SecondaryConsent ] [-ServiceId ] [-Severity ] - [-SupportPlanId ] [-SupportTicketId ] [-TechnicalTicketDetailResourceId ] - [-Title ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### CreateExpanded -``` -New-AzSupportTicket -Name -SubscriptionId [-AdvancedDiagnosticConsent ] +New-AzSupportTicket -Name [-SubscriptionId ] [-AdvancedDiagnosticConsent ] [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] @@ -492,12 +475,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..b0de6d5ef02b --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportTicketsNoSubscription.md @@ -0,0 +1,570 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportticketsnosubscription +schema: 2.0.0 +--- + +# New-AzSupportTicketsNoSubscription + +## SYNOPSIS +Creates a new support ticket for Billing, and Subscription Management issues. +Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. +To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. +The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
+ +## SYNTAX + +``` +New-AzSupportTicketsNoSubscription -SupportTicketName [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-Description ] [-FileWorkspaceName ] [-ProblemClassificationId ] + [-ProblemScopingQuestion ] [-ProblemStartTime ] + [-QuotaTicketDetailQuotaChangeRequest ] + [-QuotaTicketDetailQuotaChangeRequestSubType ] [-QuotaTicketDetailQuotaChangeRequestVersion ] + [-Require24X7Response] [-SecondaryConsent ] [-ServiceId ] [-Severity ] + [-SupportPlanId ] [-SupportTicketId ] [-TechnicalTicketDetailResourceId ] + [-Title ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new support ticket for Billing, and Subscription Management issues. +Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. +To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.\
\
Providing consent to share diagnostic information with Azure support is currently not supported via the API. +The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.\
\
+ +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AdvancedDiagnosticConsent +Advanced diagnostic consent to be updated on the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailAdditionalEmailAddress +Additional email addresses listed will be copied on any correspondence about the support ticket. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailCountry +Country of the user. +This is the ISO 3166-1 alpha-3 code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailFirstName +First name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailLastName +Last name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPhoneNumber +Phone number. +This is required if preferred contact method is phone. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredContactMethod +Preferred contact method. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredSupportLanguage +Preferred language of support from Azure. +Support languages vary based on the severity you choose for your support ticket. +Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response). +Use the standard language-country code. +Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredTimeZone +Time zone of the user. +This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPrimaryEmailAddress +Primary email address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +Detailed description of the question or issue. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProblemClassificationId +Each Azure service has its own set of issue categories, also known as problem classification. +This parameter is the unique Id for the type of problem you are experiencing. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProblemScopingQuestion +Problem scoping questions associated with the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProblemStartTime +Time in UTC (ISO 8601 format) when the problem started. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QuotaTicketDetailQuotaChangeRequest +This property is required for providing the region and new quota limits. +To construct, see NOTES section for QUOTATICKETDETAILQUOTACHANGEREQUEST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IQuotaChangeRequest[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QuotaTicketDetailQuotaChangeRequestSubType +Required for certain quota types when there is a sub type, such as Batch, for which you are requesting a quota increase. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -QuotaTicketDetailQuotaChangeRequestVersion +Quota change request version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Require24X7Response +Indicates if this requires a 24x7 response from Azure. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SecondaryConsent +This property indicates secondary consents for the support ticket +To construct, see NOTES section for SECONDARYCONSENT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISecondaryConsent[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServiceId +This is the resource Id of the Azure service resource associated with the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Severity +A value that indicates the urgency of the case, which in turn determines the response time according to the service level agreement of the technical support plan you have with Azure. +Note: 'Highest critical impact', also known as the 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportPlanId +Support plan id associated with the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketId +System generated support ticket Id that is unique. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TechnicalTicketDetailResourceId +This is the resource Id of the Azure service resource (For example: A virtual machine resource or an HDInsight resource) for which the support ticket is created. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Title +Title of the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md index cef648c3e4e1..a7951c2391f7 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md @@ -13,30 +13,17 @@ This API should be used to check the uniqueness of the name for adding a new com ## SYNTAX -### CheckExpanded1 (Default) +### CheckExpanded (Default) ``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -Name -Type - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### Check ``` -Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### Check1 -``` Test-AzSupportCommunicationNameAvailability -SupportTicketName - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### CheckExpanded -``` -Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName - -Name -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] + -CheckNameAvailabilityInput [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaIdentity @@ -46,47 +33,22 @@ Test-AzSupportCommunicationNameAvailability -InputObject [] ``` -### CheckViaIdentity1 -``` -Test-AzSupportCommunicationNameAvailability -InputObject - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - ### CheckViaIdentityExpanded ``` Test-AzSupportCommunicationNameAvailability -InputObject -Name -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### CheckViaIdentityExpanded1 -``` -Test-AzSupportCommunicationNameAvailability -InputObject -Name -Type - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - ### CheckViaJsonFilePath ``` -Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName - -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonFilePath1 -``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -JsonFilePath - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaJsonString ``` -Test-AzSupportCommunicationNameAvailability -SubscriptionId -SupportTicketName - -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckViaJsonString1 -``` Test-AzSupportCommunicationNameAvailability -SupportTicketName -JsonString - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -125,7 +87,7 @@ To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and cr ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check, Check1, CheckViaIdentity, CheckViaIdentity1 +Parameter Sets: Check, CheckViaIdentity Aliases: Required: True @@ -157,7 +119,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: CheckViaIdentity, CheckViaIdentity1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 +Parameter Sets: CheckViaIdentity, CheckViaIdentityExpanded Aliases: Required: True @@ -172,7 +134,7 @@ Path of Json file supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonFilePath, CheckViaJsonFilePath1 +Parameter Sets: CheckViaJsonFilePath Aliases: Required: True @@ -187,7 +149,7 @@ Json string supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonString, CheckViaJsonString1 +Parameter Sets: CheckViaJsonString Aliases: Required: True @@ -202,7 +164,7 @@ The resource name to validate. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckExpanded1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 +Parameter Sets: CheckExpanded, CheckViaIdentityExpanded Aliases: Required: True @@ -220,9 +182,9 @@ Type: System.String Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -232,7 +194,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: Check, Check1, CheckExpanded, CheckExpanded1, CheckViaJsonFilePath, CheckViaJsonFilePath1, CheckViaJsonString, CheckViaJsonString1 +Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString Aliases: Required: True @@ -247,7 +209,7 @@ The type of resource. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckExpanded1, CheckViaIdentityExpanded, CheckViaIdentityExpanded1 +Parameter Sets: CheckExpanded, CheckViaIdentityExpanded Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md new file mode 100644 index 000000000000..8bd02de6695c --- /dev/null +++ b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md @@ -0,0 +1,254 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/test-azsupportcommunicationsnosubscriptionnameavailability +schema: 2.0.0 +--- + +# Test-AzSupportCommunicationsNoSubscriptionNameAvailability + +## SYNOPSIS +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. + +## SYNTAX + +### CheckExpanded (Default) +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -Name + -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### Check +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CheckViaIdentity +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -InputObject + -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CheckViaIdentityExpanded +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -InputObject -Name + -Type [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonFilePath +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonString +``` +Test-AzSupportCommunicationsNoSubscriptionNameAvailability -SupportTicketName -JsonString + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for adding a new communication to the support ticket. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CheckNameAvailabilityInput +Input of CheckNameAvailability API. +To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput +Parameter Sets: Check, CheckViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: CheckViaIdentity, CheckViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The resource name to validate. + +```yaml +Type: System.String +Parameter Sets: CheckExpanded, CheckViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +The type of resource. + +```yaml +Type: System.String +Parameter Sets: CheckExpanded, CheckViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityOutput + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md index e62dcb6a21f7..b880229bb102 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md @@ -13,55 +13,30 @@ This API should be used to check the uniqueness of the name for support ticket c ## SYNTAX -### CheckExpanded1 (Default) +### CheckExpanded (Default) ``` -Test-AzSupportTicketNameAvailability -Name -Type [-DefaultProfile ] [-Confirm] - [-WhatIf] [] +Test-AzSupportTicketNameAvailability -Name -Type [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### Check ``` -Test-AzSupportTicketNameAvailability -SubscriptionId - -CheckNameAvailabilityInput [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### Check1 -``` Test-AzSupportTicketNameAvailability -CheckNameAvailabilityInput - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CheckExpanded -``` -Test-AzSupportTicketNameAvailability -SubscriptionId -Name -Type - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CheckViaJsonFilePath ``` -Test-AzSupportTicketNameAvailability -SubscriptionId -JsonFilePath +Test-AzSupportTicketNameAvailability -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### CheckViaJsonFilePath1 -``` -Test-AzSupportTicketNameAvailability -JsonFilePath [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - ### CheckViaJsonString ``` -Test-AzSupportTicketNameAvailability -SubscriptionId -JsonString +Test-AzSupportTicketNameAvailability -JsonString [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### CheckViaJsonString1 -``` -Test-AzSupportTicketNameAvailability -JsonString [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - ## DESCRIPTION Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. @@ -98,7 +73,7 @@ To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and cr ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput -Parameter Sets: Check, Check1 +Parameter Sets: Check Aliases: Required: True @@ -129,7 +104,7 @@ Path of Json file supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonFilePath, CheckViaJsonFilePath1 +Parameter Sets: CheckViaJsonFilePath Aliases: Required: True @@ -144,7 +119,7 @@ Json string supplied to the Check operation ```yaml Type: System.String -Parameter Sets: CheckViaJsonString, CheckViaJsonString1 +Parameter Sets: CheckViaJsonString Aliases: Required: True @@ -159,7 +134,7 @@ The resource name to validate. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckExpanded1 +Parameter Sets: CheckExpanded Aliases: Required: True @@ -174,12 +149,12 @@ Azure subscription Id. ```yaml Type: System.String -Parameter Sets: Check, CheckExpanded, CheckViaJsonFilePath, CheckViaJsonString +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -189,7 +164,7 @@ The type of resource. ```yaml Type: System.String -Parameter Sets: CheckExpanded, CheckExpanded1 +Parameter Sets: CheckExpanded Aliases: Required: True diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md new file mode 100644 index 000000000000..ed1bac94864a --- /dev/null +++ b/src/Support/Support.Autorest/docs/Test-AzSupportTicketsNoSubscriptionNameAvailability.md @@ -0,0 +1,207 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/test-azsupportticketsnosubscriptionnameavailability +schema: 2.0.0 +--- + +# Test-AzSupportTicketsNoSubscriptionNameAvailability + +## SYNOPSIS +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. + +## SYNTAX + +### CheckExpanded (Default) +``` +Test-AzSupportTicketsNoSubscriptionNameAvailability -Name -Type [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### Check +``` +Test-AzSupportTicketsNoSubscriptionNameAvailability -CheckNameAvailabilityInput + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonFilePath +``` +Test-AzSupportTicketsNoSubscriptionNameAvailability -JsonFilePath [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonString +``` +Test-AzSupportTicketsNoSubscriptionNameAvailability -JsonString [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Check the availability of a resource name. +This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -CheckNameAvailabilityInput +Input of CheckNameAvailability API. +To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput +Parameter Sets: Check +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The resource name to validate. + +```yaml +Type: System.String +Parameter Sets: CheckExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +The type of resource. + +```yaml +Type: System.String +Parameter Sets: CheckExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityInput + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICheckNameAvailabilityOutput + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md index 749c9b807017..4dd39f1715b4 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md @@ -14,8 +14,9 @@ Adds a new customer communication to an Azure support ticket. ### UpdateExpanded (Default) ``` -Update-AzSupportCommunication -Name -SupportTicketName [-Body ] [-Sender ] - [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] + [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded @@ -183,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +Azure subscription Id. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SupportTicketInputObject Identity Parameter To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md new file mode 100644 index 000000000000..408ca36d58a8 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md @@ -0,0 +1,264 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportcommunicationsnosubscription +schema: 2.0.0 +--- + +# Update-AzSupportCommunicationsNoSubscription + +## SYNOPSIS +Adds a new customer communication to an Azure support ticket. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName + [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzSupportCommunicationsNoSubscription -InputObject [-Body ] + [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentitySupportTicketExpanded +``` +Update-AzSupportCommunicationsNoSubscription -CommunicationName + -SupportTicketInputObject [-Body ] [-Sender ] [-Subject ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Adds a new customer communication to an Azure support ticket. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Body +Body of the communication. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CommunicationName +Communication name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentitySupportTicketExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sender +Email address of the sender. +This property is required if called by a service principal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Subject +Subject of the communication. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketInputObject +Identity Parameter +To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UpdateViaIdentitySupportTicketExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md b/src/Support/Support.Autorest/docs/Update-AzSupportFile.md index bc7f17a9b297..5d5008bd0f5a 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportFile.md @@ -8,14 +8,15 @@ schema: 2.0.0 # Update-AzSupportFile ## SYNOPSIS -Creates a new file under a workspace. +Creates a new file under a workspace for the specified subscription. ## SYNTAX ### UpdateExpanded (Default) ``` -Update-AzSupportFile -Name -WorkspaceName [-ChunkSize ] [-FileSize ] - [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Update-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] + [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ### UpdateViaIdentityExpanded @@ -32,7 +33,7 @@ Update-AzSupportFile -FileWorkspaceInputObject -Name ``` ## DESCRIPTION -Creates a new file under a workspace. +Creates a new file under a workspace for the specified subscription. ## EXAMPLES @@ -168,6 +169,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SubscriptionId +Azure subscription Id. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -WorkspaceName File workspace name. diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..e9ccc8ec8d89 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md @@ -0,0 +1,232 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportfilesnosubscription +schema: 2.0.0 +--- + +# Update-AzSupportFilesNoSubscription + +## SYNOPSIS +Creates a new file under a workspace. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] + [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzSupportFilesNoSubscription -InputObject [-ChunkSize ] [-FileSize ] + [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityFileWorkspaceExpanded +``` +Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceInputObject + [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file under a workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ChunkSize +Size of each chunk + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileName +File name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityFileWorkspaceExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileSize +Size of the file to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceInputObject +Identity Parameter +To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UpdateViaIdentityFileWorkspaceExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NumberOfChunk +Number of chunks to be uploaded + +```yaml +Type: System.Single +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md index 81c7ca9274b7..c9eb238c538c 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md @@ -13,20 +13,9 @@ In such a case, contact your support engineer to request severity update by addi ## SYNTAX -### UpdateExpanded1 (Default) +### UpdateExpanded (Default) ``` -Update-AzSupportTicket -Name [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-SecondaryConsent ] [-Severity ] [-Status ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateExpanded -``` -Update-AzSupportTicket -Name -SubscriptionId [-AdvancedDiagnosticConsent ] +Update-AzSupportTicket -Name [-SubscriptionId ] [-AdvancedDiagnosticConsent ] [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] @@ -46,17 +35,6 @@ Update-AzSupportTicket -InputObject [-AdvancedDiagnosticConse [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### UpdateViaIdentityExpanded1 -``` -Update-AzSupportTicket -InputObject [-AdvancedDiagnosticConsent ] - [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] - [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] - [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] - [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] - [-SecondaryConsent ] [-Severity ] [-Status ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - ## DESCRIPTION This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. @@ -266,7 +244,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentityExpanded1 +Parameter Sets: UpdateViaIdentityExpanded Aliases: Required: True @@ -281,7 +259,7 @@ Support ticket name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateExpanded1 +Parameter Sets: UpdateExpanded Aliases: SupportTicketName Required: True @@ -345,9 +323,9 @@ Type: System.String Parameter Sets: UpdateExpanded Aliases: -Required: True +Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..a3b84a3cdeb9 --- /dev/null +++ b/src/Support/Support.Autorest/docs/Update-AzSupportTicketsNoSubscription.md @@ -0,0 +1,363 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportticketsnosubscription +schema: 2.0.0 +--- + +# Update-AzSupportTicketsNoSubscription + +## SYNOPSIS +This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. +In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzSupportTicketsNoSubscription -SupportTicketName [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-SecondaryConsent ] [-Severity ] [-Status ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzSupportTicketsNoSubscription -InputObject [-AdvancedDiagnosticConsent ] + [-ContactDetailAdditionalEmailAddress ] [-ContactDetailCountry ] + [-ContactDetailFirstName ] [-ContactDetailLastName ] [-ContactDetailPhoneNumber ] + [-ContactDetailPreferredContactMethod ] [-ContactDetailPreferredSupportLanguage ] + [-ContactDetailPreferredTimeZone ] [-ContactDetailPrimaryEmailAddress ] + [-SecondaryConsent ] [-Severity ] [-Status ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This API allows you to update the severity level, ticket status, and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. +In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AdvancedDiagnosticConsent +Advanced diagnostic consent to be updated on the support ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailAdditionalEmailAddress +Email addresses listed will be copied on any correspondence about the support ticket. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailCountry +Country of the user. +This is the ISO 3166-1 alpha-3 code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailFirstName +First name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailLastName +Last name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPhoneNumber +Phone number. +This is required if preferred contact method is phone. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredContactMethod +Preferred contact method. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredSupportLanguage +Preferred language of support from Azure. +Support languages vary based on the severity you choose for your support ticket. +Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). +Use the standard language-country code. +Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPreferredTimeZone +Time zone of the user. +This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPrimaryEmailAddress +Primary email address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SecondaryConsent +This property indicates secondary consents for the support ticket +To construct, see NOTES section for SECONDARYCONSENT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISecondaryConsent[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Severity +Severity level. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Status to be updated on the ticket. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SupportTicketName +Support ticket name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportTicketDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscript.md b/src/Support/Support.Autorest/examples/Get-AzSupportChatTranscriptsNoSubscription.md similarity index 100% rename from src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscript.md rename to src/Support/Support.Autorest/examples/Get-AzSupportChatTranscriptsNoSubscription.md diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunication.md b/src/Support/Support.Autorest/examples/Get-AzSupportCommunicationsNoSubscription.md similarity index 100% rename from src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunication.md rename to src/Support/Support.Autorest/examples/Get-AzSupportCommunicationsNoSubscription.md diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Get-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Get-AzSupportFilesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Get-AzSupportTicketChatTranscriptsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Get-AzSupportTicketCommunicationsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Get-AzSupportTicketsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportCommunicationsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportTicketsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Test-AzSupportCommunicationsNoSubscriptionNameAvailability.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md b/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Test-AzSupportTicketsNoSubscriptionNameAvailability.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/Update-AzSupportTicketsNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + From a22e2545616c6891d1087a49349c5b8806b1a64d Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 15:01:56 -0500 Subject: [PATCH 09/27] remove comments from combined cmd for file --- .../custom/New-AzSupportFileAndUpload.ps1 | 104 +----------------- 1 file changed, 3 insertions(+), 101 deletions(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 14fe7b592e5b..e3a2c9cfbedb 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -127,52 +127,6 @@ param( ${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.Support.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.Support.private\New-AzSupportFile_CreateExpanded'; -# } -# if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { -# $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id -# } -# $cmdInfo = Get-Command -Name $mapping[$parameterSet] -# [Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ -# [Microsoft.Azure.PowerShell.Cmdlets.Support.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 { Write-Output "file path: " $FilePath @@ -195,20 +149,7 @@ process { } Write-Output "Number of chunks: " $NumberOfChunks - # try{ - if($SubscriptionId) - { - Write-Output "going into subscription id if statement for create" - New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks - } - else{ - New-AzSupportFile -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks - } - # } - # catch{ - # Write-Host $_ - # throw - # } + New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks Write-Output "successfully created file" $chunkIndex = 0 @@ -222,49 +163,10 @@ process { Write-Output "start index: " + $startIndex Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - #Write-Output "contents of file: " $FileContent - if($SubscriptionId){ - Write-Output "going into subscription id if statement for upload" - Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent - } - else{ - Invoke-AzSupportUploadFile -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent - } + + Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 } - - - # 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.Support.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 -# } -# } } From 5dea32a78fcf36d4b1ac1218b6949c8c127f036a Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 15:07:24 -0500 Subject: [PATCH 10/27] fix cmd --- .../Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index e3a2c9cfbedb..d48f061b5ad3 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -170,3 +170,4 @@ process { $endIndex = $FileSize - 1 } } +} From a5b213d7a7f063bca126c6a6faa2641b33bcd94b Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 15:13:22 -0500 Subject: [PATCH 11/27] custom no subscription file upload commands --- ...w-AzSupportFileAndUploadNoSubscription.ps1 | 166 ++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 new file mode 100644 index 000000000000..e0deec0313cf --- /dev/null +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -0,0 +1,166 @@ + +# ---------------------------------------------------------------------------------- +# 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 and uploads a new file under a workspace for the specified subscription. +.Description +Creates and uploads a new file under a workspace for the specified subscription. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails +.Link +https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile +#> +function New-AzSupportFileAndUploadNoSubscription { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('FileName')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [System.String] + # File name. + ${Name}, + + [Parameter(Mandatory)] + [Alias('FileWorkspaceName')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] + [System.String] + # File workspace name. + ${WorkspaceName}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Size of each chunk + # ${ChunkSize}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Size of the file to be uploaded + # ${FileSize}, + + # [Parameter(Mandatory)] + # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + # [System.Single] + # # Number of chunks to be uploaded + # ${NumberOfChunk}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] + [System.String] + # Path of the file to be uploaded + ${FilePath}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.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.Support.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + +process { + Write-Output "file path: " $FilePath + $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB + $MaxFileSize = 5 * 1024 * 1024 #5 MB + $FileContentBytes = Get-Content -Path $FilePath -Raw + $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) + $FileSize = $FileContentByteArray.Length + if($FileSize -gt $MaxFileSize){ + throw "File size is greater than the maximum file size of 5 MB" + } + $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} + Write-Output "Length of byte array: " $FileSize + Write-Output "Max chunk size: " $MaxChunkSize + Write-Output "Chunk Size: " $ChunkSize + $NumberOfChunks = [int][Math]::Floor($FileSize / $ChunkSize); + If($FileSize % $ChunkSize -gt 0) + { + $NumberOfChunks++ + } + Write-Output "Number of chunks: " $NumberOfChunks + + New-AzSupportFilesNoSubscription -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + + Write-Output "successfully created file" + $chunkIndex = 0 + $startIndex = 0 + $endIndex = $ChunkSize - 1 + + # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) + + while($chunkIndex -lt $NumberOfChunks){ + Write-Output "chunk index: " + $chunkIndex + Write-Output "start index: " + $startIndex + Write-Output "end index: " + $endIndex + $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) + + Invoke-AzSupportUploadFilesoSubscription -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + $chunkIndex++ + $startIndex = $endIndex + 1 + $endIndex = $FileSize - 1 + } +} +} From b95381183628107965815f0595f13866c98cc5d6 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 15:23:32 -0500 Subject: [PATCH 12/27] autogen docs for no sub file upload --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- .../Support.Autorest/docs/Az.Support.md | 3 + ...ew-AzSupportFileAndUploadNoSubscription.md | 150 ++++++++++++++++++ ...ew-AzSupportFileAndUploadNoSubscription.md | 22 +++ ...pportFileAndUploadNoSubscription.Tests.ps1 | 21 +++ 5 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileAndUploadNoSubscription.md create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index a9bec25bd711..658eddee802f 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 51b77f166710..f49517bcdd45 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -80,6 +80,9 @@ Creates a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) Creates and uploads a new file under a workspace for the specified subscription. +### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md) +Creates and uploads a new file under a workspace for the specified subscription. + ### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) Creates a new file under a workspace. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md new file mode 100644 index 000000000000..590151b5664b --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md @@ -0,0 +1,150 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile +schema: 2.0.0 +--- + +# New-AzSupportFileAndUploadNoSubscription + +## SYNOPSIS +Creates and uploads a new file under a workspace for the specified subscription. + +## SYNTAX + +``` +New-AzSupportFileAndUploadNoSubscription -Name -WorkspaceName -FilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates and uploads a new file under a workspace for the specified subscription. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FilePath +[Parameter(Mandatory)] +[Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] +[System.Single] +# Number of chunks to be uploaded +${NumberOfChunk}, +Path of the file to be uploaded + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +File name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileWorkspaceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileAndUploadNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileAndUploadNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileAndUploadNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 new file mode 100644 index 000000000000..26ae97363808 --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUploadNoSubscription')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSupportFileAndUploadNoSubscription.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzSupportFileAndUploadNoSubscription' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From 276498ca1ccc99f03858f42a6c50d20ade818bd0 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 16:02:34 -0500 Subject: [PATCH 13/27] hide individual file commands --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 12 +- .../Support.Autorest/docs/Az.Support.md | 18 - .../docs/Invoke-AzSupportUploadFile.md | 325 ------------------ ...voke-AzSupportUploadFilesNoSubscription.md | 310 ----------------- .../docs/New-AzSupportFile.md | 199 ----------- ...ew-AzSupportFileAndUploadNoSubscription.md | 12 +- .../docs/New-AzSupportFileWorkspace.md | 138 -------- ...w-AzSupportFileWorkspacesNoSubscription.md | 123 ------- .../docs/New-AzSupportFilesNoSubscription.md | 184 ---------- .../examples/Invoke-AzSupportUploadFile.md | 22 -- ...voke-AzSupportUploadFilesNoSubscription.md | 22 -- .../examples/New-AzSupportFile.md | 22 -- .../examples/New-AzSupportFileWorkspace.md | 22 -- ...w-AzSupportFileWorkspacesNoSubscription.md | 22 -- .../New-AzSupportFilesNoSubscription.md | 22 -- 16 files changed, 19 insertions(+), 1436 deletions(-) delete mode 100644 src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md delete mode 100644 src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFile.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFile.md delete mode 100644 src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFile.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 658eddee802f..23b33d07ccb9 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 639739d70b78..f1bff465f8be 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -81,10 +81,14 @@ directive: - ChunkSize - FileSize - NumberOfChunks - #- where: - #verb: New - #subject: File - #hide: true + - where: + verb: New + subject: File|FilesNoSubscription + hide: true + - where: + verb: Invoke + subject: UploadFile|UploadFilesNoSubscription + hide: true # Following are common directives which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index f49517bcdd45..991257db0ead 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -62,36 +62,18 @@ Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error. -### [Invoke-AzSupportUploadFile](Invoke-AzSupportUploadFile.md) -This API allows you to upload content to a file - -### [Invoke-AzSupportUploadFilesNoSubscription](Invoke-AzSupportUploadFilesNoSubscription.md) -This API allows you to upload content to a file - ### [New-AzSupportCommunication](New-AzSupportCommunication.md) Adds a new customer communication to an Azure support ticket. ### [New-AzSupportCommunicationsNoSubscription](New-AzSupportCommunicationsNoSubscription.md) Adds a new customer communication to an Azure support ticket. -### [New-AzSupportFile](New-AzSupportFile.md) -Creates a new file under a workspace for the specified subscription. - ### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md) Creates and uploads a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md) Creates and uploads a new file under a workspace for the specified subscription. -### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) -Creates a new file under a workspace. - -### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) -Creates a new file workspace for the specified subscription. - -### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md) -Creates a new file workspace. - ### [New-AzSupportTicket](New-AzSupportTicket.md) Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md deleted file mode 100644 index 809e2f394c4f..000000000000 --- a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFile.md +++ /dev/null @@ -1,325 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/invoke-azsupportuploadfile -schema: 2.0.0 ---- - -# Invoke-AzSupportUploadFile - -## SYNOPSIS -This API allows you to upload content to a file - -## SYNTAX - -### UploadExpanded (Default) -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName [-SubscriptionId ] - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### Upload -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -UploadFile - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentity -``` -Invoke-AzSupportUploadFile -InputObject -UploadFile - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityExpanded -``` -Invoke-AzSupportUploadFile -InputObject [-ChunkIndex ] [-Content ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspace -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspaceExpanded -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceInputObject - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### UploadViaJsonFilePath -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaJsonString -``` -Invoke-AzSupportUploadFile -FileName -FileWorkspaceName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -This API allows you to upload content to a file - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkIndex -Index of the uploaded chunk (Index starts at 0) - -```yaml -Type: System.Single -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Content -File Content in base64 encoded format - -```yaml -Type: System.String -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File Name - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File WorkspaceName - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UploadFile -File content associated with the file under a workspace. -To construct, see NOTES section for UPLOADFILE properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile -Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md deleted file mode 100644 index f9454747463c..000000000000 --- a/src/Support/Support.Autorest/docs/Invoke-AzSupportUploadFilesNoSubscription.md +++ /dev/null @@ -1,310 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/invoke-azsupportuploadfilesnosubscription -schema: 2.0.0 ---- - -# Invoke-AzSupportUploadFilesNoSubscription - -## SYNOPSIS -This API allows you to upload content to a file - -## SYNTAX - -### UploadExpanded (Default) -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### Upload -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentity -``` -Invoke-AzSupportUploadFilesNoSubscription -InputObject -UploadFile - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityExpanded -``` -Invoke-AzSupportUploadFilesNoSubscription -InputObject [-ChunkIndex ] - [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspace -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject - -UploadFile [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaIdentityFileWorkspaceExpanded -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceInputObject - [-ChunkIndex ] [-Content ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -### UploadViaJsonFilePath -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName - -JsonFilePath [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -### UploadViaJsonString -``` -Invoke-AzSupportUploadFilesNoSubscription -FileName -FileWorkspaceName -JsonString - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -This API allows you to upload content to a file - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkIndex -Index of the uploaded chunk (Index starts at 0) - -```yaml -Type: System.Single -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Content -File Content in base64 encoded format - -```yaml -Type: System.String -Parameter Sets: UploadExpanded, UploadViaIdentityExpanded, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File Name - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentityFileWorkspace, UploadViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File WorkspaceName - -```yaml -Type: System.String -Parameter Sets: Upload, UploadExpanded, UploadViaJsonFilePath, UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UploadViaIdentity, UploadViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Upload operation - -```yaml -Type: System.String -Parameter Sets: UploadViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UploadFile -File content associated with the file under a workspace. -To construct, see NOTES section for UPLOADFILE properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile -Parameter Sets: Upload, UploadViaIdentity, UploadViaIdentityFileWorkspace -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IUploadFile - -## OUTPUTS - -### System.Boolean - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFile.md b/src/Support/Support.Autorest/docs/New-AzSupportFile.md deleted file mode 100644 index 4d1bfa961b78..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFile.md +++ /dev/null @@ -1,199 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile -schema: 2.0.0 ---- - -# New-AzSupportFile - -## SYNOPSIS -Creates a new file under a workspace for the specified subscription. - -## SYNTAX - -``` -New-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Creates a new file under a workspace for the specified subscription. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: FileName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: FileWorkspaceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md index 590151b5664b..f7e6c5f919e0 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md @@ -22,19 +22,27 @@ Creates and uploads a new file under a workspace for the specified subscription. ## EXAMPLES -### -------------------------- EXAMPLE 1 -------------------------- +### Example 1: {{ Add title here }} ```powershell {{ Add code here }} ``` +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` +{{ Add description here }} -### -------------------------- EXAMPLE 2 -------------------------- +### Example 2: {{ Add title here }} ```powershell {{ Add code here }} ``` +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` +{{ Add description here }} ## PARAMETERS diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md deleted file mode 100644 index 1f1da952b27e..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspace -schema: 2.0.0 ---- - -# New-AzSupportFileWorkspace - -## SYNOPSIS -Creates a new file workspace for the specified subscription. - -## SYNTAX - -``` -New-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Creates a new file workspace for the specified subscription. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: FileWorkspaceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index cf44505a15fb..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,123 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription -schema: 2.0.0 ---- - -# New-AzSupportFileWorkspacesNoSubscription - -## SYNOPSIS -Creates a new file workspace. - -## SYNTAX - -``` -New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Creates a new file workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index 5a47e1fd99e1..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,184 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfilesnosubscription -schema: 2.0.0 ---- - -# New-AzSupportFilesNoSubscription - -## SYNOPSIS -Creates a new file under a workspace. - -## SYNTAX - -``` -New-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Creates a new file under a workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFile.md b/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFile.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFile.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Invoke-AzSupportUploadFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFile.md b/src/Support/Support.Autorest/examples/New-AzSupportFile.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFile.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - From 487bef60d57882577d488ae95a30467d7f299734 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Jan 2024 16:09:50 -0500 Subject: [PATCH 14/27] add back workspace commands --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 12 +- .../Support.Autorest/docs/Az.Support.md | 6 + .../docs/New-AzSupportFileWorkspace.md | 138 ++++++++++++++++++ ...w-AzSupportFileWorkspacesNoSubscription.md | 123 ++++++++++++++++ .../examples/New-AzSupportFileWorkspace.md | 22 +++ ...w-AzSupportFileWorkspacesNoSubscription.md | 22 +++ 7 files changed, 322 insertions(+), 3 deletions(-) create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md create mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md create mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 23b33d07ccb9..47b24a5cb2d9 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index f1bff465f8be..1a2db5b9a4ca 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -83,11 +83,19 @@ directive: - NumberOfChunks - where: verb: New - subject: File|FilesNoSubscription + subject: File + hide: true + - where: + verb: New + subject: FilesNoSubscription + hide: true + - where: + verb: Invoke + subject: UploadFile hide: true - where: verb: Invoke - subject: UploadFile|UploadFilesNoSubscription + subject: UploadFilesNoSubscription hide: true # Following are common directives which are normally required in all the RPs # 1. Remove the unexpanded parameter set diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 991257db0ead..85482fccf051 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -74,6 +74,12 @@ Creates and uploads a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md) Creates and uploads a new file under a workspace for the specified subscription. +### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) +Creates a new file workspace for the specified subscription. + +### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md) +Creates a new file workspace. + ### [New-AzSupportTicket](New-AzSupportTicket.md) Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\
\
Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\
\
Adding attachments is not currently supported via the API. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md new file mode 100644 index 000000000000..1f1da952b27e --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md @@ -0,0 +1,138 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspace +schema: 2.0.0 +--- + +# New-AzSupportFileWorkspace + +## SYNOPSIS +Creates a new file workspace for the specified subscription. + +## SYNTAX + +``` +New-AzSupportFileWorkspace -Name [-SubscriptionId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file workspace for the specified subscription. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FileWorkspaceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Azure subscription Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..cf44505a15fb --- /dev/null +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,123 @@ +--- +external help file: +Module Name: Az.Support +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription +schema: 2.0.0 +--- + +# New-AzSupportFileWorkspacesNoSubscription + +## SYNOPSIS +Creates a new file workspace. + +## SYNTAX + +``` +New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new file workspace. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileWorkspaceName +File workspace name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspace.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Support/Support.Autorest/examples/New-AzSupportFileWorkspacesNoSubscription.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + From ef75f6bcaafccab7961b841b4df68abcc0af0ffb Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 24 Jan 2024 10:00:02 -0500 Subject: [PATCH 15/27] add name as alias for fileworkspacename fileworkspacesnosubscription --- src/Support/Support.Autorest/README.md | 10 ++++++++-- .../custom/New-AzSupportFileAndUpload.ps1 | 3 +++ .../New-AzSupportFileAndUploadNoSubscription.ps1 | 3 +++ .../docs/New-AzSupportFileWorkspacesNoSubscription.md | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 1a2db5b9a4ca..44a726ab8850 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -62,7 +62,7 @@ directive: properties: - DisplayName - Name - - SecondaryConsentEnabled # Do we need this? + - SecondaryConsentEnabled - where: model-name: Service set: @@ -70,7 +70,7 @@ directive: properties: - DisplayName - Name - - ResourceType # Do we need this? + - ResourceType - where: model-name: FileDetails set: @@ -81,6 +81,12 @@ directive: - ChunkSize - FileSize - NumberOfChunks + - where: + verb: New + subject: FileWorkspacesNoSubscription + parameter-name: FileWorkspaceName + set: + alias: Name - where: verb: New subject: File diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index d48f061b5ad3..8147426b244c 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -133,6 +133,9 @@ process { $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw + if($FileContentBytes -eq $Null){ + throw "File cannot be empty" + } $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length if($FileSize -gt $MaxFileSize){ diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 index e0deec0313cf..30360b0b1b4d 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -126,6 +126,9 @@ process { $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw + if($FileContentBytes -eq $Null){ + throw "File cannot be empty" + } $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length if($FileSize -gt $MaxFileSize){ diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md index cf44505a15fb..969e025c88a7 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspacesNoSubscription.md @@ -68,7 +68,7 @@ File workspace name. ```yaml Type: System.String Parameter Sets: (All) -Aliases: +Aliases: Name Required: True Position: Named From ec6d59751993bd6297877b59186abd30bdaf556c Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 24 Jan 2024 10:53:58 -0500 Subject: [PATCH 16/27] remove update files and add alias for nosubscription file commands --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 18 +- ...w-AzSupportFileAndUploadNoSubscription.ps1 | 2 +- .../Support.Autorest/docs/Az.Support.md | 9 +- .../docs/Get-AzSupportFilesNoSubscription.md | 4 +- ...md => New-AzSupportFilesNoSubscription.md} | 62 +---- .../docs/Update-AzSupportFile.md | 247 ------------------ ...md => New-AzSupportFilesNoSubscription.md} | 0 .../Update-AzSupportFilesNoSubscription.md | 22 -- 9 files changed, 30 insertions(+), 336 deletions(-) rename src/Support/Support.Autorest/docs/{Update-AzSupportFilesNoSubscription.md => New-AzSupportFilesNoSubscription.md} (65%) delete mode 100644 src/Support/Support.Autorest/docs/Update-AzSupportFile.md rename src/Support/Support.Autorest/examples/{Update-AzSupportFile.md => New-AzSupportFilesNoSubscription.md} (100%) delete mode 100644 src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 47b24a5cb2d9..770f340be842 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 44a726ab8850..9f7cc45dce8c 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -87,14 +87,28 @@ directive: parameter-name: FileWorkspaceName set: alias: Name + - where: + subject: FilesNoSubscription + parameter-name: FileName + set: + alias: Name + - where: + subject: FilesNoSubscription + parameter-name: FileWorkspaceName + set: + alias: WorkspaceName - where: verb: New subject: File hide: true - where: - verb: New + verb: Update + subject: File + remove: true + - where: + verb: Update subject: FilesNoSubscription - hide: true + remove: true - where: verb: Invoke subject: UploadFile diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 index 30360b0b1b4d..3a2943bad258 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -160,7 +160,7 @@ process { Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFilesoSubscription -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + Invoke-AzSupportUploadFilesNoSubscription -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 85482fccf051..84315c86857c 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -74,6 +74,9 @@ Creates and uploads a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md) Creates and uploads a new file under a workspace for the specified subscription. +### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) +Creates a new file under a workspace. + ### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) Creates a new file workspace for the specified subscription. @@ -117,12 +120,6 @@ Adds a new customer communication to an Azure support ticket. ### [Update-AzSupportCommunicationsNoSubscription](Update-AzSupportCommunicationsNoSubscription.md) Adds a new customer communication to an Azure support ticket. -### [Update-AzSupportFile](Update-AzSupportFile.md) -Creates a new file under a workspace for the specified subscription. - -### [Update-AzSupportFilesNoSubscription](Update-AzSupportFilesNoSubscription.md) -Creates a new file under a workspace. - ### [Update-AzSupportTicket](Update-AzSupportTicket.md) This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.\
\
Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API. diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md index f6180f653c2a..439e7e2124ee 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFilesNoSubscription.md @@ -86,7 +86,7 @@ File Name ```yaml Type: System.String Parameter Sets: Get, GetViaIdentityFileWorkspace -Aliases: +Aliases: Name Required: True Position: Named @@ -117,7 +117,7 @@ File Workspace Name ```yaml Type: System.String Parameter Sets: Get, List -Aliases: +Aliases: WorkspaceName Required: True Position: Named diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md similarity index 65% rename from src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md rename to src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md index e9ccc8ec8d89..e7e128966b4a 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportFilesNoSubscription.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md @@ -1,37 +1,23 @@ --- external help file: Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportfilesnosubscription +online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfilesnosubscription schema: 2.0.0 --- -# Update-AzSupportFilesNoSubscription +# New-AzSupportFilesNoSubscription ## SYNOPSIS Creates a new file under a workspace. ## SYNTAX -### UpdateExpanded (Default) ``` -Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] +New-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### UpdateViaIdentityExpanded -``` -Update-AzSupportFilesNoSubscription -InputObject [-ChunkSize ] [-FileSize ] - [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityFileWorkspaceExpanded -``` -Update-AzSupportFilesNoSubscription -FileName -FileWorkspaceInputObject - [-ChunkSize ] [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - ## DESCRIPTION Creates a new file under a workspace. @@ -97,8 +83,8 @@ File name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityFileWorkspaceExpanded -Aliases: +Parameter Sets: (All) +Aliases: Name Required: True Position: Named @@ -122,29 +108,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -FileWorkspaceName File workspace name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded -Aliases: +Parameter Sets: (All) +Aliases: WorkspaceName Required: True Position: Named @@ -153,22 +123,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -NumberOfChunk Number of chunks to be uploaded @@ -220,8 +174,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md b/src/Support/Support.Autorest/docs/Update-AzSupportFile.md deleted file mode 100644 index 5d5008bd0f5a..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportFile.md +++ /dev/null @@ -1,247 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportfile -schema: 2.0.0 ---- - -# Update-AzSupportFile - -## SYNOPSIS -Creates a new file under a workspace for the specified subscription. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportFile -Name -WorkspaceName [-SubscriptionId ] [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportFile -InputObject [-ChunkSize ] [-FileSize ] - [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityFileWorkspaceExpanded -``` -Update-AzSupportFile -FileWorkspaceInputObject -Name [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Creates a new file under a workspace for the specified subscription. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceInputObject -Identity Parameter -To construct, see NOTES section for FILEWORKSPACEINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityFileWorkspaceExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -File name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityFileWorkspaceExpanded -Aliases: FileName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: FileWorkspaceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportFile.md b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md similarity index 100% rename from src/Support/Support.Autorest/examples/Update-AzSupportFile.md rename to src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - From 9715b1587388383ade89cdff87f59d5aede62cef Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 26 Jan 2024 14:58:58 -0500 Subject: [PATCH 17/27] tests for get service --- .../test/Get-AzSupportService.Recording.json | 84 +++++ .../test/Get-AzSupportService.Tests.ps1 | 10 +- src/Support/Support.Autorest/test/env.json | 4 + tools/AzPreview/AzPreview.psm1 | 308 ++++++++++++++++++ 4 files changed, 402 insertions(+), 4 deletions(-) create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json create mode 100644 src/Support/Support.Autorest/test/env.json create mode 100644 tools/AzPreview/AzPreview.psm1 diff --git a/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json new file mode 100644 index 000000000000..599600f5c724 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json @@ -0,0 +1,84 @@ +{ + "Get-AzSupportService+[NoContext]+List+$GET+https://management.azure.com/providers/Microsoft.Support/services?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "47d76974-ba1c-455a-840d-a0ebba272757" ], + "CommandName": [ "Get-AzSupportService" ], + "FullCommandName": [ "Get-AzSupportService_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-request-id": [ "29a30a49-679e-4f91-9d99-edac0b9a925a" ], + "x-ms-correlation-request-id": [ "29a30a49-679e-4f91-9d99-edac0b9a925a" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T195803Z:29a30a49-679e-4f91-9d99-edac0b9a925a" ], + "Date": [ "Fri, 26 Jan 2024 19:58:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "100765" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Support/services/484e2236-bc6d-b1bb-76d2-7d09278cf9ea\",\"name\":\"484e2236-bc6d-b1bb-76d2-7d09278cf9ea\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Activity Logs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/26d8424b-0a41-4443-cbc6-0309ea8708d0\",\"name\":\"26d8424b-0a41-4443-cbc6-0309ea8708d0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Advisor\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/1232100c-42c0-f626-2b4f-8c8a4877acad\",\"name\":\"1232100c-42c0-f626-2b4f-8c8a4877acad\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"AKS Edge Essentials\",\"resourceTypes\":[\"Microsoft.Kubernetes/connectedClusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/c1840ac9-309f-f235-c0ae-4782f283b698\",\"name\":\"c1840ac9-309f-f235-c0ae-4782f283b698\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Alerts and Action Groups\",\"resourceTypes\":[\"MICROSOFT.INSIGHTS/ALERTRULES\",\"MICROSOFT.INSIGHTS/ACTIVITYLOGALERTS\",\"MICROSOFT.INSIGHTS/METRICALERTS\",\"MICROSOFT.INSIGHTS/SCHEDULEDQUERYRULES\",\"MICROSOFT.INSIGHTS/ACTIONGROUPS\",\"MICROSOFT.ALERTSMANAGEMENT/ACTIONRULES\",\"MICROSOFT.ALERTSMANAGEMENT/ALERTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/e8fe7c6f-d883-c57f-6576-cf801ca30653\",\"name\":\"e8fe7c6f-d883-c57f-6576-cf801ca30653\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Analysis Services\",\"resourceTypes\":[\"MICROSOFT.ANALYSISSERVICES/SERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/4be91ca7-f109-c1f4-c7d0-d1377e8fb2dc\",\"name\":\"4be91ca7-f109-c1f4-c7d0-d1377e8fb2dc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"API Center - Preview\",\"resourceTypes\":[\"Microsoft.ApiCenter\"]}},{\"id\":\"/providers/Microsoft.Support/services/07651e65-958a-0877-36f3-61bbba85d783\",\"name\":\"07651e65-958a-0877-36f3-61bbba85d783\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"API for FHIR\",\"resourceTypes\":[\"Microsoft.HealthcareApis/services\"]}},{\"id\":\"/providers/Microsoft.Support/services/b4d0e877-0166-0474-9a76-b5be30ba40e4\",\"name\":\"b4d0e877-0166-0474-9a76-b5be30ba40e4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"API Management Service\",\"resourceTypes\":[\"MICROSOFT.APIMANAGEMENT/SERVICE\"]}},{\"id\":\"/providers/Microsoft.Support/services/862f5cc8-0f41-97a5-d2d8-940d7aba6de4\",\"name\":\"862f5cc8-0f41-97a5-d2d8-940d7aba6de4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"App Compliance Automation Tool for Microsoft 365\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/e14f616b-42c5-4515-3d7c-67935eece51a\",\"name\":\"e14f616b-42c5-4515-3d7c-67935eece51a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"App Configuration\",\"resourceTypes\":[\"Microsoft.AppConfiguration\"]}},{\"id\":\"/providers/Microsoft.Support/services/445c0905-55e2-4f42-d853-ec9e17a5180e\",\"name\":\"445c0905-55e2-4f42-d853-ec9e17a5180e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"App Service Certificates\",\"resourceTypes\":[\"MICROSOFT.CERTIFICATEREGISTRATION/CERTIFICATEORDERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b7d2f8b7-7d20-cf2f-ddd5-5543ada54bd2\",\"name\":\"b7d2f8b7-7d20-cf2f-ddd5-5543ada54bd2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"App Service Domains\",\"resourceTypes\":[\"MICROSOFT.DOMAINREGISTRATION/DOMAINS\"]}},{\"id\":\"/providers/Microsoft.Support/services/0420c0b3-5e23-1475-d8ad-c883ef940b46\",\"name\":\"0420c0b3-5e23-1475-d8ad-c883ef940b46\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"App Service on Azure Stack Hub\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/101732bb-31af-ee61-7c16-d4ad77c86a50\",\"name\":\"101732bb-31af-ee61-7c16-d4ad77c86a50\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Application Gateway\",\"resourceTypes\":[\"MICROSOFT.NETWORK/APPLICATIONGATEWAYS\"]}},{\"id\":\"/providers/Microsoft.Support/services/939c13c2-cd69-70fb-0851-c219bca05cb0\",\"name\":\"939c13c2-cd69-70fb-0851-c219bca05cb0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Application Gateway for Containers - Preview\",\"resourceTypes\":[\"microsoft.servicenetworking/trafficcontrollers\",\"microsoft.servicenetworking/trafficcontrollers/frontends\",\"microsoft.servicenetworking/trafficcontrollers/associations\"]}},{\"id\":\"/providers/Microsoft.Support/services/63df7848-ce1c-06d4-517f-2a62983372c6\",\"name\":\"63df7848-ce1c-06d4-517f-2a62983372c6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Application Insights\",\"resourceTypes\":[\"MICROSOFT.INSIGHTS/COMPONENTS\",\"MICROSOFT.INSIGHTS/ACTIVITYLOGALERTS\",\"MICROSOFT.INSIGHTS/METRICALERTS\",\"MICROSOFT.INSIGHTS/SCHEDULEDQUERYRULES\"]}},{\"id\":\"/providers/Microsoft.Support/services/2fd37acf-7616-eae7-546b-1a78a16d11b5\",\"name\":\"2fd37acf-7616-eae7-546b-1a78a16d11b5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"ASE\",\"resourceTypes\":[\"MICROSOFT.WEB/HOSTINGENVIRONMENTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b661f9c2-28ee-800a-b621-118a6787a8e6\",\"name\":\"b661f9c2-28ee-800a-b621-118a6787a8e6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Automanage for Virtual Machines\",\"resourceTypes\":[\"microsoft.automanage\"]}},{\"id\":\"/providers/Microsoft.Support/services/81437870-7683-745e-1c1f-7d9e7e2401ef\",\"name\":\"81437870-7683-745e-1c1f-7d9e7e2401ef\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Automanage Machine Configuration\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/82881226-e06c-2b57-3365-38437e84059e\",\"name\":\"82881226-e06c-2b57-3365-38437e84059e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Autoscale\",\"resourceTypes\":[\"MICROSOFT.INSIGHTS/AUTOSCALESETTINGS\"]}},{\"id\":\"/providers/Microsoft.Support/services/500d88b2-c24c-0d5d-3b76-acfde7d6ee20\",\"name\":\"500d88b2-c24c-0d5d-3b76-acfde7d6ee20\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Avere vFXT\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/31af6335-2e73-ce48-c02e-6b9473b59f7a\",\"name\":\"31af6335-2e73-ce48-c02e-6b9473b59f7a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure AI Studio\",\"resourceTypes\":[\"Microsoft.MachineLearningServices\",\"Microsoft.MachineLearningServices/aistudio\"]}},{\"id\":\"/providers/Microsoft.Support/services/ab3e222e-3538-2b59-d3e8-963047a08f8b\",\"name\":\"ab3e222e-3538-2b59-d3e8-963047a08f8b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled Data Services\",\"resourceTypes\":[\"Microsoft.AzureArcData/datacontrollers\"]}},{\"id\":\"/providers/Microsoft.Support/services/11689be9-43d7-ba72-5806-03ab87626a4a\",\"name\":\"11689be9-43d7-ba72-5806-03ab87626a4a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled Kubernetes\",\"resourceTypes\":[\"Microsoft.Kubernetes/connectedClusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/9ef6b6ba-0bb2-e927-2ea7-32f90a97414d\",\"name\":\"9ef6b6ba-0bb2-e927-2ea7-32f90a97414d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled PostgreSQL - Preview\",\"resourceTypes\":[\"Microsoft.AzureArcData/postgresinstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/bdb8e8ae-3bba-4c43-e8ad-36e132e481ef\",\"name\":\"bdb8e8ae-3bba-4c43-e8ad-36e132e481ef\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled SCVMM\",\"resourceTypes\":[\"Microsoft.ScVmm\"]}},{\"id\":\"/providers/Microsoft.Support/services/17318db1-cfda-52da-b65f-68e53ba89e64\",\"name\":\"17318db1-cfda-52da-b65f-68e53ba89e64\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled servers\",\"resourceTypes\":[\"Microsoft.hybridcompute/machines\"]}},{\"id\":\"/providers/Microsoft.Support/services/f6575f88-34bc-79d3-8693-05ee9b7ca72b\",\"name\":\"f6575f88-34bc-79d3-8693-05ee9b7ca72b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled SQL Managed Instance\",\"resourceTypes\":[\"Microsoft.AzureArcData/sqlmanagedinstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/2d45b14d-73cf-eb4b-0dc3-6ee86904c64b\",\"name\":\"2d45b14d-73cf-eb4b-0dc3-6ee86904c64b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc enabled VMware vSphere\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/216cb580-99ad-5c86-d60e-72aca32dc2a2\",\"name\":\"216cb580-99ad-5c86-d60e-72aca32dc2a2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc Resource Bridge\",\"resourceTypes\":[\"Microsoft.ResourceConnector/Appliances\"]}},{\"id\":\"/providers/Microsoft.Support/services/8dfc5d56-9245-222f-19fc-dfafc3fba973\",\"name\":\"8dfc5d56-9245-222f-19fc-dfafc3fba973\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Arc-enabled SQL Server\",\"resourceTypes\":[\"Microsoft.AzureArcData/sqlServerInstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/90426252-f966-63ea-cbda-cab5ceaa865d\",\"name\":\"90426252-f966-63ea-cbda-cab5ceaa865d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Automation\",\"resourceTypes\":[\"MICROSOFT.AUTOMATION/AUTOMATIONACCOUNTS\",\"MICROSOFT.AUTOMATION/AUTOMATIONACCOUNTS/RUNBOOKS\",\"MICROSOFT.AUTOMATION/AUTOMATIONACCOUNTS/JOBS\"]}},{\"id\":\"/providers/Microsoft.Support/services/17d72dfc-8f48-94cb-05e6-5f88efdf72d7\",\"name\":\"17d72dfc-8f48-94cb-05e6-5f88efdf72d7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Backup\",\"resourceTypes\":[\"Microsoft.RecoveryServices/vaults\",\"Microsoft.DataProtection/BackupVaults\"]}},{\"id\":\"/providers/Microsoft.Support/services/f26f06d5-c3b1-0372-8c5b-93a371ec434c\",\"name\":\"f26f06d5-c3b1-0372-8c5b-93a371ec434c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Blueprint - Preview\",\"resourceTypes\":[\"Microsoft.Blueprint/BLUEPRINTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/58cf91d7-3a04-37d3-9818-9bd5c979d9a9\",\"name\":\"58cf91d7-3a04-37d3-9818-9bd5c979d9a9\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure CDN\",\"resourceTypes\":[\"Microsoft.Cdn/profiles\",\"Microsoft.Cdn/profiles/endpoints\",\"Microsoft.Cdn/CdnWebApplicationFirewallPolicies\"]}},{\"id\":\"/providers/Microsoft.Support/services/9db8a797-7fec-d348-fc3e-c24665973f2c\",\"name\":\"9db8a797-7fec-d348-fc3e-c24665973f2c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Center for SAP solutions\",\"resourceTypes\":[\"Microsoft.Workloads/sapvirtualinstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/6d25bd66-1b18-21ea-1c39-50d27ccbc816\",\"name\":\"6d25bd66-1b18-21ea-1c39-50d27ccbc816\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Compute Gallery\",\"resourceTypes\":[\"Microsoft.Compute/galleries\",\"Microsoft.Compute/galleries/images\",\"Microsoft.Compute/galleries/images/versions\",\"Microsoft.Compute/galleries/gallery/applications\"]}},{\"id\":\"/providers/Microsoft.Support/services/332c304e-d81f-fb73-53fa-32e02c9929b8\",\"name\":\"332c304e-d81f-fb73-53fa-32e02c9929b8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Cosmos DB for MongoDB (vCore)\",\"resourceTypes\":[\"MICROSOFT.DOCUMENTDB/MONGOCLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/aec6da31-9ef4-f890-e34c-ec1fbac8e6b1\",\"name\":\"aec6da31-9ef4-f890-e34c-ec1fbac8e6b1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Cosmos DB for PostgreSQL\",\"resourceTypes\":[\"MICROSOFT.DBFORPOSTGRESQL/SERVERSV2\",\"Microsoft.DBforPostgreSQL/servergroupsv2\",\"MICROSOFT.DBFORPOSTGRESQL/SERVERGROUPS\"]}},{\"id\":\"/providers/Microsoft.Support/services/3f14906b-a48e-b51a-d700-b3eb7784bce8\",\"name\":\"3f14906b-a48e-b51a-d700-b3eb7784bce8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Database for MariaDB\",\"resourceTypes\":[\"MICROSOFT.DBFORMARIADB/SERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7ef8ab5c-3c21-c342-8eed-2b5a8fc7fba3\",\"name\":\"7ef8ab5c-3c21-c342-8eed-2b5a8fc7fba3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Database for MySQL flexible server\",\"resourceTypes\":[\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/32b3cec2-0abd-1d18-68cc-9183b15b7da1\",\"name\":\"32b3cec2-0abd-1d18-68cc-9183b15b7da1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Database for MySQL single server\",\"resourceTypes\":[\"MICROSOFT.DBFORMYSQL/SERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/191ddd48-d790-61f4-315b-f621cdd66a91\",\"name\":\"191ddd48-d790-61f4-315b-f621cdd66a91\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Database for PostgreSQL flexible server\",\"resourceTypes\":[\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/12a55468-fa60-8943-45e2-338011722931\",\"name\":\"12a55468-fa60-8943-45e2-338011722931\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Database for PostgreSQL single server\",\"resourceTypes\":[\"MICROSOFT.DBFORPOSTGRESQL/SERVERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b9c52334-7da1-7360-b396-0406b0c9d3b7\",\"name\":\"b9c52334-7da1-7360-b396-0406b0c9d3b7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Dedicated Host\",\"resourceTypes\":[\"Microsoft.Compute/hostGroups\",\"Microsoft.Compute/hostGroups/hosts\"]}},{\"id\":\"/providers/Microsoft.Support/services/cd1e630f-be69-dde7-f0ee-899b33e765d6\",\"name\":\"cd1e630f-be69-dde7-f0ee-899b33e765d6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Deployment Environments\",\"resourceTypes\":[\"Microsoft.DevCenter\",\"Microsoft.DevCenter/devCenters\"]}},{\"id\":\"/providers/Microsoft.Support/services/cd9d74ec-8333-b326-f42f-303e223e04eb\",\"name\":\"cd9d74ec-8333-b326-f42f-303e223e04eb\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure DevOps Services\",\"resourceTypes\":[\"Microsoft.Visualstudio\"]}},{\"id\":\"/providers/Microsoft.Support/services/985987a3-2363-99eb-321b-c753677e0008\",\"name\":\"985987a3-2363-99eb-321b-c753677e0008\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Digital Twins\",\"resourceTypes\":[\"Microsoft.DigitalTwins\"]}},{\"id\":\"/providers/Microsoft.Support/services/f0269138-eb6e-a81a-10e9-17965b5683d4\",\"name\":\"f0269138-eb6e-a81a-10e9-17965b5683d4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure DNS\",\"resourceTypes\":[\"MICROSOFT.NETWORK/DNSZONES\"]}},{\"id\":\"/providers/Microsoft.Support/services/5b807b4a-60ff-3256-faf1-5934bd59b4b9\",\"name\":\"5b807b4a-60ff-3256-faf1-5934bd59b4b9\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Edge Hardware Center\",\"resourceTypes\":[\"Microsoft.EdgeOrder/OrderItems\"]}},{\"id\":\"/providers/Microsoft.Support/services/3b799b70-420a-6397-e69c-853341d0eab5\",\"name\":\"3b799b70-420a-6397-e69c-853341d0eab5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Firewall\",\"resourceTypes\":[\"Microsoft.Network/azureFirewalls\",\"Microsoft.Network/firewallPolicies\"]}},{\"id\":\"/providers/Microsoft.Support/services/f1e803c0-d4aa-156d-8507-3f9e5e4e1504\",\"name\":\"f1e803c0-d4aa-156d-8507-3f9e5e4e1504\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Firewall Manager\",\"resourceTypes\":[\"Microsoft.Network/firewallPolicies\",\"Microsoft.Network/firewallPolicies\"]}},{\"id\":\"/providers/Microsoft.Support/services/025f80a1-8242-b74c-6a4a-f01341b8669b\",\"name\":\"025f80a1-8242-b74c-6a4a-f01341b8669b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Fluid Relay\",\"resourceTypes\":[\"Microsoft.FluidRelay/fluidRelayServers\"]}},{\"id\":\"/providers/Microsoft.Support/services/3d598a6c-5432-adab-e87a-1dfdbb562302\",\"name\":\"3d598a6c-5432-adab-e87a-1dfdbb562302\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure FXT Edge Filer\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/be63f24b-d7d7-fac8-d753-388658582f99\",\"name\":\"be63f24b-d7d7-fac8-d753-388658582f99\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Health Data Services\",\"resourceTypes\":[\"Microsoft.HealthcareApis\",\"Microsoft.HealthcareApis/workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/8ab9233e-aa65-ab0a-cf6f-7e4ec528556a\",\"name\":\"8ab9233e-aa65-ab0a-cf6f-7e4ec528556a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Healthcare Bot\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/036bd7f8-ead3-3a43-e7f9-cda1e3ad0120\",\"name\":\"036bd7f8-ead3-3a43-e7f9-cda1e3ad0120\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Import-Export Service\",\"resourceTypes\":[\"Microsoft.ImportExport\",\"Microsoft.Databox/Jobs\"]}},{\"id\":\"/providers/Microsoft.Support/services/8168c456-2014-a581-dde8-d25e47d964c8\",\"name\":\"8168c456-2014-a581-dde8-d25e47d964c8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Information Protection\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/b9bf9f58-bbd4-16a0-a6cc-85b5ead295fe\",\"name\":\"b9bf9f58-bbd4-16a0-a6cc-85b5ead295fe\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure IoT Operations - Preview\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/e29406fa-af70-5215-e29b-9c9b7f5204d3\",\"name\":\"e29406fa-af70-5215-e29b-9c9b7f5204d3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Kinect Dev Kit\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/70d82de6-3222-8f21-71f8-1912ba5ad0ae\",\"name\":\"70d82de6-3222-8f21-71f8-1912ba5ad0ae\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Kubernetes Fleet Manager\",\"resourceTypes\":[\"Microsoft.ContainerService\",\"Microsoft.ContainerService/fleets\"]}},{\"id\":\"/providers/Microsoft.Support/services/32545be3-202c-9cd6-2031-98e763d29b5e\",\"name\":\"32545be3-202c-9cd6-2031-98e763d29b5e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Kubernetes Service on Azure Stack HCI (AKS-HCI)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/88a4d9f6-1d66-7b9a-32fe-e5a965e0c099\",\"name\":\"88a4d9f6-1d66-7b9a-32fe-e5a965e0c099\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Load Testing\",\"resourceTypes\":[\"Microsoft.LoadTestService\",\"Microsoft.LoadTestService/loadtests\"]}},{\"id\":\"/providers/Microsoft.Support/services/07112d69-b92c-27dd-4864-ff0d63e503fd\",\"name\":\"07112d69-b92c-27dd-4864-ff0d63e503fd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Managed Grafana\",\"resourceTypes\":[\"Microsoft.Dashboard\",\"Microsoft.Dashboard/Grafana\"]}},{\"id\":\"/providers/Microsoft.Support/services/76cd10bf-6048-7e15-3e5a-bca3cfdd5959\",\"name\":\"76cd10bf-6048-7e15-3e5a-bca3cfdd5959\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Managed Lustre\",\"resourceTypes\":[\"Microsoft.StorageCache\"]}},{\"id\":\"/providers/Microsoft.Support/services/ef44dd7b-4344-edcf-2eb1-f6f094fd46a3\",\"name\":\"ef44dd7b-4344-edcf-2eb1-f6f094fd46a3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Migrate\",\"resourceTypes\":[\"Microsoft.Migrate/migrateProjects\"]}},{\"id\":\"/providers/Microsoft.Support/services/06d6dec8-469a-b652-f8e8-61e47c34efef\",\"name\":\"06d6dec8-469a-b652-f8e8-61e47c34efef\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure mobile app (for Android \u0026 iOS)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/0e7d7270-6909-a0db-7b22-771d4567032e\",\"name\":\"0e7d7270-6909-a0db-7b22-771d4567032e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Modeling and Simulation Workbench\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/86490df1-3db5-08c6-1f6b-4138be52adb9\",\"name\":\"86490df1-3db5-08c6-1f6b-4138be52adb9\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Monitor for SAP Solutions\",\"resourceTypes\":[\"Microsoft.HanaOnAzure/sapMonitors\",\"Microsoft.Workloads/monitors\"]}},{\"id\":\"/providers/Microsoft.Support/services/3dd3fff2-078a-6981-82ed-1c74b363490a\",\"name\":\"3dd3fff2-078a-6981-82ed-1c74b363490a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Native Palo Alto Cloud Next-Generation Firewall\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/824615f0-1b01-931d-1e1c-36516330ec6d\",\"name\":\"824615f0-1b01-931d-1e1c-36516330ec6d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Native Qumulo Scalable File Service\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/00743e6b-ddfd-e1cb-b90e-2a9f8d1c2a52\",\"name\":\"00743e6b-ddfd-e1cb-b90e-2a9f8d1c2a52\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure NetApp Files\",\"resourceTypes\":[\"Microsoft.NetApp/netAppAccounts\",\"Microsoft.NetApp/netAppAccounts/capacityPools\",\"Microsoft.NetApp/netAppAccounts/capacityPools/Volumes\"]}},{\"id\":\"/providers/Microsoft.Support/services/1d0798a7-8ca0-280e-66d6-bee58f544e67\",\"name\":\"1d0798a7-8ca0-280e-66d6-bee58f544e67\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Network Function Manager\",\"resourceTypes\":[\"Microsoft.HybridNetwork\",\"Microsoft.HybridNetwork/networkfunctions\",\"Microsoft.HybridNetwork/devices\"]}},{\"id\":\"/providers/Microsoft.Support/services/25aa2af2-9b6e-96b5-ce85-d784a0fea138\",\"name\":\"25aa2af2-9b6e-96b5-ce85-d784a0fea138\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Object Anchors - Preview\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/809bf9f9-cdc2-6547-cbd9-117248bbbe8c\",\"name\":\"809bf9f9-cdc2-6547-cbd9-117248bbbe8c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Operator Insights\",\"resourceTypes\":[\"Microsoft.NetworkAnalytics\"]}},{\"id\":\"/providers/Microsoft.Support/services/88f7fa12-ffd2-e080-ab1f-16aa954adbfb\",\"name\":\"88f7fa12-ffd2-e080-ab1f-16aa954adbfb\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Operator Nexus\",\"resourceTypes\":[\"Microsoft.NetworkCloud\",\"Microsoft.ManagedNetworkFabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/376a9fef-266e-08ca-fdd8-e85b43d0b66e\",\"name\":\"376a9fef-266e-08ca-fdd8-e85b43d0b66e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Operator Service Manager\",\"resourceTypes\":[\"Microsoft.HybridNetwork/publishers\",\"Microsoft.HybridNetwork/sites\",\"Microsoft.HybridNetwork/configurationGroupValues\",\"Microsoft.HybridNetwork/siteNetworkServices\",\"Microsoft.HybridNetwork/networkFunctions\"]}},{\"id\":\"/providers/Microsoft.Support/services/c8be3b31-c407-ee77-e40d-ffa6a39201bd\",\"name\":\"c8be3b31-c407-ee77-e40d-ffa6a39201bd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Orbital\",\"resourceTypes\":[\"Microsoft.Orbital\",\"Microsoft.Orbital/Spacecrafts\",\"Microsoft.Orbital/Spacecrafts/Contacts\"]}},{\"id\":\"/providers/Microsoft.Support/services/ce34cf91-b52e-afe9-57d6-1baf3ff5a59b\",\"name\":\"ce34cf91-b52e-afe9-57d6-1baf3ff5a59b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Payment HSM Service\",\"resourceTypes\":[\"Microsoft.HardwareSecurityModules/dedicatedHSM\"]}},{\"id\":\"/providers/Microsoft.Support/services/03dc29df-b9ef-75cc-9bce-d87f55dd0f73\",\"name\":\"03dc29df-b9ef-75cc-9bce-d87f55dd0f73\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Percept\",\"resourceTypes\":[\"Microsoft.AzurePercept/accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/10b4ca52-06e3-3064-3788-5b396ae8ff45\",\"name\":\"10b4ca52-06e3-3064-3788-5b396ae8ff45\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Policy\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/2b3d28b4-4691-86b5-8a82-22f8e26b2e5e\",\"name\":\"2b3d28b4-4691-86b5-8a82-22f8e26b2e5e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Private 5G Core\",\"resourceTypes\":[\"Microsoft.MobileNetwork/mobilenetworks\"]}},{\"id\":\"/providers/Microsoft.Support/services/50cb0c81-4dee-0e4e-d7bd-caa5560e76af\",\"name\":\"50cb0c81-4dee-0e4e-d7bd-caa5560e76af\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Private Link\",\"resourceTypes\":[\"Microsoft.Network/privateLinkServices\",\"Microsoft.Network/privateEndpoints\"]}},{\"id\":\"/providers/Microsoft.Support/services/0dbbd8bb-01d0-3b18-97d8-091ab1b40558\",\"name\":\"0dbbd8bb-01d0-3b18-97d8-091ab1b40558\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure public Multi-Access Edge Compute (MEC)\",\"resourceTypes\":[\"Microsoft.Networking\",\"Microsoft.Compute\",\"Microsoft.Storage\"]}},{\"id\":\"/providers/Microsoft.Support/services/c20fd445-607c-6af4-8dff-7e248c950344\",\"name\":\"c20fd445-607c-6af4-8dff-7e248c950344\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Quantum - Preview\",\"resourceTypes\":[\"Microsoft.Quantum/Workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/b701b8d6-fc99-aba8-bab9-bc2e171fa89c\",\"name\":\"b701b8d6-fc99-aba8-bab9-bc2e171fa89c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure RedHat OpenShift\",\"resourceTypes\":[\"Microsoft.RedHatOpenShift/OpenShiftClusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/cb6b214b-fbeb-8fd1-a055-3d60bbe81c28\",\"name\":\"cb6b214b-fbeb-8fd1-a055-3d60bbe81c28\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Resource Graph\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/3366336e-70d9-3450-f04d-5eecce9374fe\",\"name\":\"3366336e-70d9-3450-f04d-5eecce9374fe\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Resource Mover\",\"resourceTypes\":[\"Microsoft.Migrate/MoveCollections\"]}},{\"id\":\"/providers/Microsoft.Support/services/c0ea59a0-318d-3a01-8b10-eeb155952e7c\",\"name\":\"c0ea59a0-318d-3a01-8b10-eeb155952e7c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Route Server\",\"resourceTypes\":[\"Microsoft.Network/virtualHubs\"]}},{\"id\":\"/providers/Microsoft.Support/services/7ab45c4c-7827-cedf-07bd-2b38f63540ae\",\"name\":\"7ab45c4c-7827-cedf-07bd-2b38f63540ae\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure RTOS\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/b1d432df-e9cc-ff08-d261-32586b843bc1\",\"name\":\"b1d432df-e9cc-ff08-d261-32586b843bc1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Site Recovery\",\"resourceTypes\":[\"Microsoft.RecoveryServices/vaults\"]}},{\"id\":\"/providers/Microsoft.Support/services/a6475480-6048-1d77-76fc-3118551f24c1\",\"name\":\"a6475480-6048-1d77-76fc-3118551f24c1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Sphere\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/bbc183d4-df10-8580-d10b-4123c10ae34d\",\"name\":\"bbc183d4-df10-8580-d10b-4123c10ae34d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Spring Apps\",\"resourceTypes\":[\"Microsoft.AppPlatform/Spring\"]}},{\"id\":\"/providers/Microsoft.Support/services/2950380d-f11a-136b-1b95-017b71f25ef8\",\"name\":\"2950380d-f11a-136b-1b95-017b71f25ef8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack Edge\",\"resourceTypes\":[\"Microsoft.DataBoxEdge/DataBoxEdgeDevices\"]}},{\"id\":\"/providers/Microsoft.Support/services/297c5dfa-56dd-8040-1ae5-88f78d60e055\",\"name\":\"297c5dfa-56dd-8040-1ae5-88f78d60e055\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack Edge Mini R\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/65f78722-e5a1-858a-6d66-0d5640d688a2\",\"name\":\"65f78722-e5a1-858a-6d66-0d5640d688a2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack Edge Pro R\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/5804950e-8756-4711-367a-57965175f0ad\",\"name\":\"5804950e-8756-4711-367a-57965175f0ad\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack HCI\",\"resourceTypes\":[\"Microsoft.AzureStackHCI/clusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/32d322a8-acae-202d-e9a9-7371dccf381b\",\"name\":\"32d322a8-acae-202d-e9a9-7371dccf381b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack Hub\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/47e87a02-77c6-23d1-bdd3-858d9b64d4e0\",\"name\":\"47e87a02-77c6-23d1-bdd3-858d9b64d4e0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Stack Hub Ruggedized\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/ba5ef5c8-031a-aa1e-76b6-bd58e6f5c452\",\"name\":\"ba5ef5c8-031a-aa1e-76b6-bd58e6f5c452\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Storage Mover\",\"resourceTypes\":[\"Microsoft.StorageMover/StorageMovers\"]}},{\"id\":\"/providers/Microsoft.Support/services/9fccedfd-3d56-635e-e377-c72e2cdb402f\",\"name\":\"9fccedfd-3d56-635e-e377-c72e2cdb402f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure StorSimple 8000 Series\",\"resourceTypes\":[\"MICROSOFT.STORSIMPLE/MANAGERS\",\"MICROSOFT.STORSIMPLEBVTD2/MANAGERS\",\"MICROSOFT.HYBRIDDATA/DATAMANAGERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/9f858284-99ed-c476-0dc6-75be58efedfb\",\"name\":\"9f858284-99ed-c476-0dc6-75be58efedfb\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Apache Spark Pool\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces/BigDataPools\"]}},{\"id\":\"/providers/Microsoft.Support/services/5e76fec8-ad4b-4350-47e6-9b90efd844dc\",\"name\":\"5e76fec8-ad4b-4350-47e6-9b90efd844dc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Data Explorer Pool\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces/KustoPools\"]}},{\"id\":\"/providers/Microsoft.Support/services/6175465c-97bb-e2fe-3e94-a8ffccdb3dd1\",\"name\":\"6175465c-97bb-e2fe-3e94-a8ffccdb3dd1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Dedicated SQL Pool\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces/SqlPools\",\"Microsoft.Sql/Servers/Databases\"]}},{\"id\":\"/providers/Microsoft.Support/services/b25ffe84-5478-16e3-3427-00fdf5a5cd91\",\"name\":\"b25ffe84-5478-16e3-3427-00fdf5a5cd91\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Pipeline and Data Flow\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/19726725-bf71-155c-a930-1fca742d1b87\",\"name\":\"19726725-bf71-155c-a930-1fca742d1b87\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Serverless SQL Pool\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/b5fc3c5d-ce14-ef83-5816-89984205d0e5\",\"name\":\"b5fc3c5d-ce14-ef83-5816-89984205d0e5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Synapse Link\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/8d8fb5f1-f55d-f3c6-8d4b-ab84f9084bca\",\"name\":\"8d8fb5f1-f55d-f3c6-8d4b-ab84f9084bca\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Analytics Workspace\",\"resourceTypes\":[\"Microsoft.Synapse/Workspaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/9112da51-73b5-92d8-3f2e-1fddb504f4b5\",\"name\":\"9112da51-73b5-92d8-3f2e-1fddb504f4b5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Synapse Pathway\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/5c41904f-1bcf-76e4-7a54-5fc07468f3cc\",\"name\":\"5c41904f-1bcf-76e4-7a54-5fc07468f3cc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Update Manager\",\"resourceTypes\":[\"Microsoft.HybridCompute/machines\",\"Microsoft.Maintenance/maintenanceConfigurations\",\"Microsoft.Maintenance/configurationAssignments\",\"MICROSOFT.AUTOMATION/AUTOMATIONACCOUNTS\",\"Microsoft.Compute/virtualMachines\"]}},{\"id\":\"/providers/Microsoft.Support/services/393f9162-a29a-1e9f-1972-d524c7bc7026\",\"name\":\"393f9162-a29a-1e9f-1972-d524c7bc7026\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Video Indexer\",\"resourceTypes\":[\"Microsoft.VideoIndexer/accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/63cefc01-98f2-7ef4-2b5f-0c4b268a7dad\",\"name\":\"63cefc01-98f2-7ef4-2b5f-0c4b268a7dad\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Virtual Desktop\",\"resourceTypes\":[\"Microsoft.DesktopVirtualization/workspace\",\"Microsoft.Desktopvirtualization/hostpools\",\"Microsoft.DesktopVirtualization/hostpools/hostpool/\",\"Microsoft.DesktopVirtualization/appgroup\",\"Microsoft.DesktopVirtualization/applicationgroups\",\"Microsoft.DesktopVirtualization/workspaces\",\"Microsoft.DesktopVirtualization/scalingplans\"]}},{\"id\":\"/providers/Microsoft.Support/services/0030df58-1e6e-8958-770e-1ba656360372\",\"name\":\"0030df58-1e6e-8958-770e-1ba656360372\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Virtual Network Manager\",\"resourceTypes\":[\"Microsoft.Network/networkManagers\"]}},{\"id\":\"/providers/Microsoft.Support/services/8df50d5e-6cdd-3a3a-0cb5-95dbef9e09ab\",\"name\":\"8df50d5e-6cdd-3a3a-0cb5-95dbef9e09ab\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure VM Image Builder\",\"resourceTypes\":[\"Microsoft.VirtualMachineImages\"]}},{\"id\":\"/providers/Microsoft.Support/services/e7b24d57-0431-7d60-a4bf-e28adc11d23e\",\"name\":\"e7b24d57-0431-7d60-a4bf-e28adc11d23e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure VMware Solution\",\"resourceTypes\":[\"Microsoft.AVS/privateClouds\"]}},{\"id\":\"/providers/Microsoft.Support/services/a4ecd5be-8461-dde6-6761-353dc7d7bf54\",\"name\":\"a4ecd5be-8461-dde6-6761-353dc7d7bf54\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Web PubSub Service\",\"resourceTypes\":[\"Microsoft.SignalRService/WebPubSub\"]}},{\"id\":\"/providers/Microsoft.Support/services/ec9fcee4-7ede-9ba9-7edb-0e6b95428ea5\",\"name\":\"ec9fcee4-7ede-9ba9-7edb-0e6b95428ea5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Azure Workbooks\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/468c696a-3e6b-a470-a3c9-1b59cd4abae4\",\"name\":\"468c696a-3e6b-a470-a3c9-1b59cd4abae4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"BareMetal Infrastructure\",\"resourceTypes\":[\"Microsoft.HanaOnAzure/sapMonitors\",\"Microsoft.BareMetalInfrastructure/bareMetalInstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/ffc9bb42-93e4-eb40-5421-ba3537f3a012\",\"name\":\"ffc9bb42-93e4-eb40-5421-ba3537f3a012\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Bastion\",\"resourceTypes\":[\"Microsoft.Network/bastionHosts\"]}},{\"id\":\"/providers/Microsoft.Support/services/3f33d852-e61f-d835-8217-a9a677d96914\",\"name\":\"3f33d852-e61f-d835-8217-a9a677d96914\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Batch Service\",\"resourceTypes\":[\"MICROSOFT.BATCH/BATCHACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc\",\"name\":\"517f2da6-78fd-0498-4e22-ad26996b1dfc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Billing\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a2c69e6c-34b6-fc5d-0f35-b496a071c28d\",\"name\":\"a2c69e6c-34b6-fc5d-0f35-b496a071c28d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Blob Storage\",\"resourceTypes\":[\"MICROSOFT.CLASSICSTORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGE/STORAGEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/98134488-9bd9-db12-619c-06636d1ee55e\",\"name\":\"98134488-9bd9-db12-619c-06636d1ee55e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Bot Service\",\"resourceTypes\":[\"Microsoft.BotService/botServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/b16f3aa1-e798-0090-9159-5dc3bae17c5b\",\"name\":\"b16f3aa1-e798-0090-9159-5dc3bae17c5b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Business To Consumer (B2C) Tenants\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/275635f1-6a9b-cca1-af9e-c379b30890ff\",\"name\":\"275635f1-6a9b-cca1-af9e-c379b30890ff\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cache for Redis\",\"resourceTypes\":[\"MICROSOFT.CACHE/REDIS\"]}},{\"id\":\"/providers/Microsoft.Support/services/18f0ceb2-fe97-722d-f789-0dfcde3ab2e4\",\"name\":\"18f0ceb2-fe97-722d-f789-0dfcde3ab2e4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cache for Redis Enterprise\",\"resourceTypes\":[\"MICROSOFT.CACHE/REDISENTERPRISE\"]}},{\"id\":\"/providers/Microsoft.Support/services/2b6e85ee-b01f-0479-f799-b37634d993e3\",\"name\":\"2b6e85ee-b01f-0479-f799-b37634d993e3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Change Analysis\",\"resourceTypes\":[\"Microsoft.ChangeAnalysis\"]}},{\"id\":\"/providers/Microsoft.Support/services/c508dfe2-0a4d-06b0-67a2-28cef284d243\",\"name\":\"c508dfe2-0a4d-06b0-67a2-28cef284d243\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Change Tracking and Inventory\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/70e113c2-39fd-2640-f1f5-fd5a6beaefa7\",\"name\":\"70e113c2-39fd-2640-f1f5-fd5a6beaefa7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Chaos Studio\",\"resourceTypes\":[\"Microsoft.Chaos/experiments\"]}},{\"id\":\"/providers/Microsoft.Support/services/2f9ed23d-9575-75e3-cdfb-3e9a5ad5223c\",\"name\":\"2f9ed23d-9575-75e3-cdfb-3e9a5ad5223c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cloud App Discovery\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/c4b5fb5c-e277-0fba-1a6e-967912edac0c\",\"name\":\"c4b5fb5c-e277-0fba-1a6e-967912edac0c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cloud Service (Extended Support) (Web roles/Worker roles)\",\"resourceTypes\":[\"Microsoft.Compute/cloudServices\",\"MICROSOFT.CLASSICCOMPUTE/DOMAINNAMES\"]}},{\"id\":\"/providers/Microsoft.Support/services/e79dcabe-5f77-3326-2112-74487e1e5f78\",\"name\":\"e79dcabe-5f77-3326-2112-74487e1e5f78\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cloud Services (Web roles/Worker roles)\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/DOMAINNAMES\",\"Microsoft.Compute/cloudServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/70a6ce77-640d-fb3b-d2e2-942c479a929b\",\"name\":\"70a6ce77-640d-fb3b-d2e2-942c479a929b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cloud Shell\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/87112f97-cf14-d714-03cb-28af2e422e31\",\"name\":\"87112f97-cf14-d714-03cb-28af2e422e31\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/c811355a-31ae-acc0-7364-60bc67ab4ca7\",\"name\":\"c811355a-31ae-acc0-7364-60bc67ab4ca7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-All-in-One Key\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/3c9e9005-bd01-4331-8483-68c4c0a9c1b9\",\"name\":\"3c9e9005-bd01-4331-8483-68c4c0a9c1b9\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Anomaly Detector\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/9e65c540-e7ae-b43c-1e0a-ba8dc860dbbd\",\"name\":\"9e65c540-e7ae-b43c-1e0a-ba8dc860dbbd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Bing Custom Search\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/355c72f1-6700-8523-f274-8b65d1f10c7b\",\"name\":\"355c72f1-6700-8523-f274-8b65d1f10c7b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Bing Search\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/71e0f29e-91d4-acb4-329e-fb16cd7c366e\",\"name\":\"71e0f29e-91d4-acb4-329e-fb16cd7c366e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Bing Spell Check\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/00677266-37a0-73ba-d7c4-ad3c814b2b11\",\"name\":\"00677266-37a0-73ba-d7c4-ad3c814b2b11\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Computer Vision\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7f35b180-0014-494f-df00-68fc50a92976\",\"name\":\"7f35b180-0014-494f-df00-68fc50a92976\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Content Moderator\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/6dfefaed-7312-8350-bbe6-c452fe5749c7\",\"name\":\"6dfefaed-7312-8350-bbe6-c452fe5749c7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Custom Vision\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/01cde781-0618-be89-60ce-14ca8e939c7d\",\"name\":\"01cde781-0618-be89-60ce-14ca8e939c7d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Face API\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/1a8bf6aa-6385-da93-8884-b1de5934f242\",\"name\":\"1a8bf6aa-6385-da93-8884-b1de5934f242\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Form Recognizer\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/e78c1fb0-1fd4-7ad6-df28-6b8d6f2c803f\",\"name\":\"e78c1fb0-1fd4-7ad6-df28-6b8d6f2c803f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Immersive Reader\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/7faf083e-7dd5-a35b-ba18-52eeac29d9a1\",\"name\":\"7faf083e-7dd5-a35b-ba18-52eeac29d9a1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-LUIS\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/97c076d2-d123-a335-a64b-362198ae7004\",\"name\":\"97c076d2-d123-a335-a64b-362198ae7004\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Metrics Advisor\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/13fc6b1d-b65d-0800-19e3-77521c7e4e09\",\"name\":\"13fc6b1d-b65d-0800-19e3-77521c7e4e09\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Personalizer\",\"resourceTypes\":[\"Microsoft.CognitiveServices/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/9a2cd2eb-f793-9717-a145-3497086f40b4\",\"name\":\"9a2cd2eb-f793-9717-a145-3497086f40b4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-QnA Maker\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/8d2d990b-173c-fbee-3913-05e3f338b67b\",\"name\":\"8d2d990b-173c-fbee-3913-05e3f338b67b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Speech Services\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b1bfd43f-f4f6-7e3c-4a01-ed74b71b6dd7\",\"name\":\"b1bfd43f-f4f6-7e3c-4a01-ed74b71b6dd7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Text Analytics\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/4bc4301f-b40e-080d-9252-a523f88a16e7\",\"name\":\"4bc4301f-b40e-080d-9252-a523f88a16e7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cognitive Services-Translator Text\",\"resourceTypes\":[\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/2e9d497d-e486-8d76-3582-ad201c974730\",\"name\":\"2e9d497d-e486-8d76-3582-ad201c974730\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Communication Services\",\"resourceTypes\":[\"Microsoft.Communication/CommunicationServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/98594b2e-741c-7d1c-2eb5-b06e25670cc4\",\"name\":\"98594b2e-741c-7d1c-2eb5-b06e25670cc4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Communications Gateway\",\"resourceTypes\":[\"Microsoft.VoiceServices/CommunicationsGateways\"]}},{\"id\":\"/providers/Microsoft.Support/services/6db223ca-4ea9-41b9-af8a-61a0a5b6a150\",\"name\":\"6db223ca-4ea9-41b9-af8a-61a0a5b6a150\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Confidential Ledger\",\"resourceTypes\":[\"Microsoft.ConfidentialLedger\"]}},{\"id\":\"/providers/Microsoft.Support/services/6f3d78e8-246d-880c-acec-31033f3a7a8f\",\"name\":\"6f3d78e8-246d-880c-acec-31033f3a7a8f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Confluent on Azure\",\"resourceTypes\":[\"microsoft.confluent/organizations\"]}},{\"id\":\"/providers/Microsoft.Support/services/5bc1fc7c-358f-3640-9d3f-f051a51c1e93\",\"name\":\"5bc1fc7c-358f-3640-9d3f-f051a51c1e93\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container Apps\",\"resourceTypes\":[\"Microsoft.App/containerapps\",\"Microsoft.App/managedenvironments\",\"Microsoft.App/jobs\"]}},{\"id\":\"/providers/Microsoft.Support/services/44557205-b0ce-df77-a5b5-5e145323f4a1\",\"name\":\"44557205-b0ce-df77-a5b5-5e145323f4a1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container insights\",\"resourceTypes\":[\"Microsoft.ContainerService/OpenshiftManagedclusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/fd718335-8143-4759-bb14-cf7cff4f585e\",\"name\":\"fd718335-8143-4759-bb14-cf7cff4f585e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container Instances\",\"resourceTypes\":[\"MICROSOFT.CONTAINERINSTANCE/CONTAINERGROUPS\"]}},{\"id\":\"/providers/Microsoft.Support/services/f100a6d5-17df-c517-a2bc-ecc2a5bfb975\",\"name\":\"f100a6d5-17df-c517-a2bc-ecc2a5bfb975\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container Registry\",\"resourceTypes\":[\"MICROSOFT.CONTAINERREGISTRY/REGISTRIES\"]}},{\"id\":\"/providers/Microsoft.Support/services/201a3899-cb54-d8ec-d02f-7b0a4fd0d67f\",\"name\":\"201a3899-cb54-d8ec-d02f-7b0a4fd0d67f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container Registry on Azure Stack Hub - Preview\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/5a2a4812-d5f3-18a2-f6d6-5f847a5a96a1\",\"name\":\"5a2a4812-d5f3-18a2-f6d6-5f847a5a96a1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Container Storage - Preview\",\"resourceTypes\":[\"Microsoft.ContainerStorage\"]}},{\"id\":\"/providers/Microsoft.Support/services/6c9754aa-1828-2b91-0d32-31f7774af6a7\",\"name\":\"6c9754aa-1828-2b91-0d32-31f7774af6a7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Content Safety\",\"resourceTypes\":[\"Microsoft.Cognitive\"]}},{\"id\":\"/providers/Microsoft.Support/services/d9516a10-74b5-45f4-943d-a5281d7cf1bb\",\"name\":\"d9516a10-74b5-45f4-943d-a5281d7cf1bb\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Cosmos DB\",\"resourceTypes\":[\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/33476b0f-7f52-9f63-56d0-5924636304ff\",\"name\":\"33476b0f-7f52-9f63-56d0-5924636304ff\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Customer Lockbox for Microsoft Azure\",\"resourceTypes\":[\"Microsoft.CustomerLockbox\"]}},{\"id\":\"/providers/Microsoft.Support/services/53cdda84-33c0-81db-6a25-adaac64419d6\",\"name\":\"53cdda84-33c0-81db-6a25-adaac64419d6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"CycleCloud\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a091fbc6-3624-42e8-4b3c-654a29d6958e\",\"name\":\"a091fbc6-3624-42e8-4b3c-654a29d6958e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Box\",\"resourceTypes\":[\"MICROSOFT.DATABOX/JOBS\"]}},{\"id\":\"/providers/Microsoft.Support/services/5d6f97e5-c9cf-e3c7-98e0-6011d194d84f\",\"name\":\"5d6f97e5-c9cf-e3c7-98e0-6011d194d84f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Box Gateway\",\"resourceTypes\":[\"Microsoft.DataBoxGateway\",\"Microsoft.Storage\",\"Microsoft.DataBoxEdge/DataBoxEdgeDevices\"]}},{\"id\":\"/providers/Microsoft.Support/services/9a7df480-f592-a980-906c-bd1fd3060aa8\",\"name\":\"9a7df480-f592-a980-906c-bd1fd3060aa8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Catalog\",\"resourceTypes\":[\"MICROSOFT.DATACATALOG/CATALOGS\"]}},{\"id\":\"/providers/Microsoft.Support/services/f0bd9b83-fcdc-15ec-a9db-47068d512d4f\",\"name\":\"f0bd9b83-fcdc-15ec-a9db-47068d512d4f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Collection Rules (DCR) and Agent (AMA)\",\"resourceTypes\":[\"MICROSOFT.INSIGHTS/DATACOLLECTIONRULES\",\"MICROSOFT.INSIGHTS/DATACOLLECTIONENDPOINTS\",\"MICROSOFT.INSIGHTS/DATACOLLECTIONRULEASSOCIATIONS\"]}},{\"id\":\"/providers/Microsoft.Support/services/0d06686e-fac3-fde3-a8c1-6dfbc8bd3865\",\"name\":\"0d06686e-fac3-fde3-a8c1-6dfbc8bd3865\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Explorer\",\"resourceTypes\":[\"Microsoft.Kusto/Clusters\",\"Microsoft.Kusto/Databases\"]}},{\"id\":\"/providers/Microsoft.Support/services/113715b9-70c6-3019-fa70-5d9f0c15c610\",\"name\":\"113715b9-70c6-3019-fa70-5d9f0c15c610\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Factory\",\"resourceTypes\":[\"MICROSOFT.DATAFACTORY/DATAFACTORIES\",\"MICROSOFT.DATAFACTORY/FACTORIES\"]}},{\"id\":\"/providers/Microsoft.Support/services/eea96939-cf20-792a-ed0a-f11eb11336df\",\"name\":\"eea96939-cf20-792a-ed0a-f11eb11336df\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Lake Analytics\",\"resourceTypes\":[\"MICROSOFT.DATALAKEANALYTICS/ACCOUNTS\",\"MICROSOFT.DATALAKEANALYTICS/ACCOUNTS/STORAGEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7ecbaeae-c1bc-285f-a3bd-b5a3ba00b294\",\"name\":\"7ecbaeae-c1bc-285f-a3bd-b5a3ba00b294\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Lake Storage Gen1\",\"resourceTypes\":[\"MICROSOFT.DATALAKESTORE/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/a95c4ceb-9637-4484-2205-d1162a7d2249\",\"name\":\"a95c4ceb-9637-4484-2205-d1162a7d2249\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Lake Storage Gen2\",\"resourceTypes\":[\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"Wandisco.Fusion/fusionGroups\",\"Wandisco.Fusion/migrators\"]}},{\"id\":\"/providers/Microsoft.Support/services/0c1a625e-85d1-f83b-7248-2367293c9d85\",\"name\":\"0c1a625e-85d1-f83b-7248-2367293c9d85\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Data Share\",\"resourceTypes\":[\"Microsoft.DataShare/accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/8c615be4-9081-f10c-5866-afa4fab9666d\",\"name\":\"8c615be4-9081-f10c-5866-afa4fab9666d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Database Migration Service\",\"resourceTypes\":[\"MICROSOFT.DATAMIGRATION/SERVICES\",\"Microsoft.DataMigration/SQLMigrationServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/3461f86b-df79-07f2-aad9-34a81b2d9023\",\"name\":\"3461f86b-df79-07f2-aad9-34a81b2d9023\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Databricks\",\"resourceTypes\":[\"MICROSOFT.DATABRICKS/WORKSPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/251a4e5f-1aac-be01-3279-4249c348b4cb\",\"name\":\"251a4e5f-1aac-be01-3279-4249c348b4cb\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Datadog on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/d22650a0-c129-647b-967c-fb18c83584c6\",\"name\":\"d22650a0-c129-647b-967c-fb18c83584c6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"DDOS Protection\",\"resourceTypes\":[\"MICROSOFT.NETWORK/DDOSPROTECTIONPLANS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7d1ce754-b825-74b6-8022-87193cd96b6e\",\"name\":\"7d1ce754-b825-74b6-8022-87193cd96b6e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Dedicated HSM\",\"resourceTypes\":[\"Microsoft.HardwareSecurityModules/DedicatedHSM\"]}},{\"id\":\"/providers/Microsoft.Support/services/546aaccb-cb73-2d7a-546f-e4001c2a0670\",\"name\":\"546aaccb-cb73-2d7a-546f-e4001c2a0670\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Device Update for IoT Hub\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/5405fb26-173b-7571-9998-98e23cd8643d\",\"name\":\"5405fb26-173b-7571-9998-98e23cd8643d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"DevTest Labs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/39dc26f0-c1b1-2323-c39f-3ae3860e0c37\",\"name\":\"39dc26f0-c1b1-2323-c39f-3ae3860e0c37\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Diagnostic Logs and Diagnostic Settings\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/1d311e9b-0852-2f19-07bf-22f48e57d71a\",\"name\":\"1d311e9b-0852-2f19-07bf-22f48e57d71a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Disk Storage\",\"resourceTypes\":[\"MICROSOFT.COMPUTE/Disks\",\"MICROSOFT.COMPUTE/diskEncryptionSets\"]}},{\"id\":\"/providers/Microsoft.Support/services/633d88dc-7cf1-cc96-7053-3552fcc9235a\",\"name\":\"633d88dc-7cf1-cc96-7053-3552fcc9235a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Dynatrace on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/8b583bd0-6368-dc07-8719-f7d94a4ea536\",\"name\":\"8b583bd0-6368-dc07-8719-f7d94a4ea536\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Elastic on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/ed4dbd49-ba0e-777b-b059-0450428f2879\",\"name\":\"ed4dbd49-ba0e-777b-b059-0450428f2879\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Elastic San\",\"resourceTypes\":[\"Microsoft.ElasticSan\"]}},{\"id\":\"/providers/Microsoft.Support/services/a79c6645-e39b-3410-6e3c-24c6b96b616b\",\"name\":\"a79c6645-e39b-3410-6e3c-24c6b96b616b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Enrollment administration\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/569cea1e-00ed-f1fa-d1ad-39b3fbec6475\",\"name\":\"569cea1e-00ed-f1fa-d1ad-39b3fbec6475\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Epic on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/bfe4c4f0-96eb-41a9-a9aa-23a3b5ed9974\",\"name\":\"bfe4c4f0-96eb-41a9-a9aa-23a3b5ed9974\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Event Grid\",\"resourceTypes\":[\"MICROSOFT.EVENTGRID/TOPICS\",\"Microsoft.EventGrid/domains\",\"Microsoft.EventGrid/systemTopics\",\"Microsoft.EventGrid/partnerTopics\",\"Microsoft.EventGrid/namespaces\"]}},{\"id\":\"/providers/Microsoft.Support/services/e8b3dd28-f3eb-c73f-e03a-20159685defa\",\"name\":\"e8b3dd28-f3eb-c73f-e03a-20159685defa\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Event Grid on Kubernetes with Azure Arc - Preview\",\"resourceTypes\":[\"Microsoft.EventGrid\"]}},{\"id\":\"/providers/Microsoft.Support/services/4fa35c58-016c-a25b-4105-bd667c24ab1f\",\"name\":\"4fa35c58-016c-a25b-4105-bd667c24ab1f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Event Hubs\",\"resourceTypes\":[\"MICROSOFT.EVENTHUB/NAMESPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/48ffed53-baf4-c26a-c7a1-4bea807be2a0\",\"name\":\"48ffed53-baf4-c26a-c7a1-4bea807be2a0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Event Hubs on Azure Stack Hub\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/759b4975-eee7-178d-6996-31047d078bf2\",\"name\":\"759b4975-eee7-178d-6996-31047d078bf2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"ExpressRoute\",\"resourceTypes\":[\"MICROSOFT.NETWORK/EXPRESSROUTECIRCUITS\"]}},{\"id\":\"/providers/Microsoft.Support/services/74e3c1c3-412f-e934-70c5-24629ea33cf7\",\"name\":\"74e3c1c3-412f-e934-70c5-24629ea33cf7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"ExpressRoute Direct\",\"resourceTypes\":[\"Microsoft.Network/expressRoutePorts\",\"MICROSOFT.NETWORKFUNCTION/AZURETRAFFICCOLLECTORS\"]}},{\"id\":\"/providers/Microsoft.Support/services/ce989245-7b7b-ab4f-ac5a-a4ca2ee9d2a2\",\"name\":\"ce989245-7b7b-ab4f-ac5a-a4ca2ee9d2a2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"ExpressRoute Service Provider\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/fac12c7e-6522-1af5-3898-a45a905495d5\",\"name\":\"fac12c7e-6522-1af5-3898-a45a905495d5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric - Synapse Real Time Analytics\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/14ec3ea7-c6ee-6f43-0480-1994e19e2b71\",\"name\":\"14ec3ea7-c6ee-6f43-0480-1994e19e2b71\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Admin \u0026 Management\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/ce616a11-6c3c-3787-e5af-87bd93f057ac\",\"name\":\"ce616a11-6c3c-3787-e5af-87bd93f057ac\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Data Activator (Preview)\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/abe09b55-980d-8005-43d1-3dc68d4e7da2\",\"name\":\"abe09b55-980d-8005-43d1-3dc68d4e7da2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Data Factory\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/790e4cf1-2147-6bb2-0f93-b8455e189f22\",\"name\":\"790e4cf1-2147-6bb2-0f93-b8455e189f22\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Retail Data Solutions (Preview)\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/d1b45bee-a445-760e-e81e-5c0851cf9fe4\",\"name\":\"d1b45bee-a445-760e-e81e-5c0851cf9fe4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Sustainability Data Solutions - Preview\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/84c5d9a0-a381-cbe3-68c4-92d6d031e1d2\",\"name\":\"84c5d9a0-a381-cbe3-68c4-92d6d031e1d2\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Synapse Data Engineering\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/5f7c1f86-6c27-9a46-c580-677513de3d8c\",\"name\":\"5f7c1f86-6c27-9a46-c580-677513de3d8c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Synapse Data Science\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/97d4fe08-885c-2713-8a1c-517a8b2874ac\",\"name\":\"97d4fe08-885c-2713-8a1c-517a8b2874ac\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Fabric Synapse Data Warehouse\",\"resourceTypes\":[\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/30dfd88b-b455-1748-a4a0-e4c5aa795663\",\"name\":\"30dfd88b-b455-1748-a4a0-e4c5aa795663\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Files Storage\",\"resourceTypes\":[\"MICROSOFT.CLASSICSTORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGESYNC/STORAGESYNCSERVICES\"]}},{\"id\":\"/providers/Microsoft.Support/services/fafcf178-45ee-85df-ef14-982729bf2f82\",\"name\":\"fafcf178-45ee-85df-ef14-982729bf2f82\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Front Door Service\",\"resourceTypes\":[\"MICROSOFT.NETWORK/FRONTDOORS\"]}},{\"id\":\"/providers/Microsoft.Support/services/2a1d6261-5ecd-a128-739f-9bd4f2154ba5\",\"name\":\"2a1d6261-5ecd-a128-739f-9bd4f2154ba5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Front Door Standard and Premium\",\"resourceTypes\":[\"microsoft.cdn/profiles\"]}},{\"id\":\"/providers/Microsoft.Support/services/5ce8de69-abba-65a0-e0e4-a684bcbc7931\",\"name\":\"5ce8de69-abba-65a0-e0e4-a684bcbc7931\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Function App\",\"resourceTypes\":[\"MICROSOFT.WEB/SITES\"]}},{\"id\":\"/providers/Microsoft.Support/services/24629f4c-b450-03f7-aa4f-e2c48f422560\",\"name\":\"24629f4c-b450-03f7-aa4f-e2c48f422560\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Function App on Azure Arc\",\"resourceTypes\":[\"Microsoft.Web/Sites\"]}},{\"id\":\"/providers/Microsoft.Support/services/93c1bf6f-2816-3f1f-269d-9ee459d000a6\",\"name\":\"93c1bf6f-2816-3f1f-269d-9ee459d000a6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"GitHub Advanced Security for Azure DevOps\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/354c8172-2cc3-fef7-ed37-81214a6298a5\",\"name\":\"354c8172-2cc3-fef7-ed37-81214a6298a5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Global Secure Access\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/e053e63d-7425-0499-485c-4f5ba4b78244\",\"name\":\"e053e63d-7425-0499-485c-4f5ba4b78244\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"HDInsight on AKS - Preview\",\"resourceTypes\":[\"MICROSOFT.HDINSIGHT/CLUSTERPOOLS\",\"MICROSOFT.HDINSIGHT/CLUSTERPOOLS/CLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/5ffad63a-3267-d6b7-2fa1-6d9134c1fa62\",\"name\":\"5ffad63a-3267-d6b7-2fa1-6d9134c1fa62\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"HDInsight Service\",\"resourceTypes\":[\"MICROSOFT.HDINSIGHT/CLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/e00b1ed8-fc24-fef4-6f4c-36d963708ae1\",\"name\":\"e00b1ed8-fc24-fef4-6f4c-36d963708ae1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"High Performance Computing (HPC)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/6b415938-2927-0d9d-6c3c-fbacea64e42d\",\"name\":\"6b415938-2927-0d9d-6c3c-fbacea64e42d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"HPC Cache\",\"resourceTypes\":[\"Microsoft.StorageCache/caches\"]}},{\"id\":\"/providers/Microsoft.Support/services/9f7ef27e-7bdb-0570-4e15-f50c870f03aa\",\"name\":\"9f7ef27e-7bdb-0570-4e15-f50c870f03aa\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Insights for Azure Stack HCI\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/370cf612-d7bd-b9e5-5a3c-42532257212c\",\"name\":\"370cf612-d7bd-b9e5-5a3c-42532257212c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Intelligent Recommendations\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/fb35bf64-b744-16ba-68d1-e1853af0816e\",\"name\":\"fb35bf64-b744-16ba-68d1-e1853af0816e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IoT Central\",\"resourceTypes\":[\"MICROSOFT.IOTCENTRAL/IOTAPPS\"]}},{\"id\":\"/providers/Microsoft.Support/services/ea37799f-166b-c702-e4d1-e17fa52b2984\",\"name\":\"ea37799f-166b-c702-e4d1-e17fa52b2984\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IoT Device Provisioning Service\",\"resourceTypes\":[\"MICROSOFT.DEVICES/PROVISIONINGSERVICES\"]}},{\"id\":\"/providers/Microsoft.Support/services/0ebfa061-1e74-5f8f-ed46-5a46e13e5d33\",\"name\":\"0ebfa061-1e74-5f8f-ed46-5a46e13e5d33\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IoT Edge\",\"resourceTypes\":[\"MICROSOFT.DEVICES/IOTHUBS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b8b1c1dd-dfe1-63e8-cc06-e6a1a1c5a853\",\"name\":\"b8b1c1dd-dfe1-63e8-cc06-e6a1a1c5a853\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IoT Hub\",\"resourceTypes\":[\"MICROSOFT.DEVICES/IOTHUBS\"]}},{\"id\":\"/providers/Microsoft.Support/services/4ba83714-c274-28d6-af7f-43c12863bf2f\",\"name\":\"4ba83714-c274-28d6-af7f-43c12863bf2f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IoT SDKs\",\"resourceTypes\":[\"MICROSOFT.DEVICES/IOTHUBS\"]}},{\"id\":\"/providers/Microsoft.Support/services/e7c01763-5374-faf0-d1ac-1719f8da4612\",\"name\":\"e7c01763-5374-faf0-d1ac-1719f8da4612\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"IP Services\",\"resourceTypes\":[\"Microsoft.Network/customipprefixes\",\"Microsoft.Network/PublicIPAddresses\",\"Microsoft.Network/PublicIPPrefixes\"]}},{\"id\":\"/providers/Microsoft.Support/services/0283d26b-bad8-f0e2-37f4-86dc0328c710\",\"name\":\"0283d26b-bad8-f0e2-37f4-86dc0328c710\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Key Vault\",\"resourceTypes\":[\"MICROSOFT.KEYVAULT/VAULTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/8f1ddc5f-0c5e-50c7-9810-e01a8d1da925\",\"name\":\"8f1ddc5f-0c5e-50c7-9810-e01a8d1da925\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Kubernetes (AKS Engine) on Azure Stack Hub\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/5a3a423f-8667-9095-1770-0a554a934512\",\"name\":\"5a3a423f-8667-9095-1770-0a554a934512\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Kubernetes Service (AKS)\",\"resourceTypes\":[\"MICROSOFT.CONTAINERSERVICE/MANAGEDCLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7f2f38ed-ca01-fd3a-b7d4-d029e970f574\",\"name\":\"7f2f38ed-ca01-fd3a-b7d4-d029e970f574\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Kubernetes Service (AKS) on Azure Stack Hub - Preview\",\"resourceTypes\":[\"Microsoft.AzureStack/registrations\"]}},{\"id\":\"/providers/Microsoft.Support/services/b8925cb6-338d-9b0c-2655-1ef611982fc4\",\"name\":\"b8925cb6-338d-9b0c-2655-1ef611982fc4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Lab Services with lab account\",\"resourceTypes\":[\"MICROSOFT.DEVTESTLAB/LABS\",\"MICROSOFT.LABSERVICES/LABACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/9c87a292-835f-d089-8368-9a6daaad2f24\",\"name\":\"9c87a292-835f-d089-8368-9a6daaad2f24\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Lab Services with lab plan\",\"resourceTypes\":[\"MICROSOFT.LABSERVICES/LABS\",\"MICROSOFT.LABSERVICES/LABPLANS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b0882e3d-d09c-ca61-725b-b5d318365454\",\"name\":\"b0882e3d-d09c-ca61-725b-b5d318365454\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Lighthouse\",\"resourceTypes\":[\"Microsoft.ManagedServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/7b29574f-b855-9dec-9b08-fe4aeaa3bbc0\",\"name\":\"7b29574f-b855-9dec-9b08-fe4aeaa3bbc0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Load Balancer\",\"resourceTypes\":[\"MICROSOFT.NETWORK/LOADBALANCERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/1bfb8072-ed96-9acc-b57c-34d716b5f674\",\"name\":\"1bfb8072-ed96-9acc-b57c-34d716b5f674\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Log Analytics\",\"resourceTypes\":[\"MICROSOFT.OPERATIONALINSIGHTS/WORKSPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/908d4c6f-e217-fecc-1fd8-284779c5aaf5\",\"name\":\"908d4c6f-e217-fecc-1fd8-284779c5aaf5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Log Analytics agent (MMA and OMS)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/9239daee-9951-e495-0aee-bf6b73708882\",\"name\":\"9239daee-9951-e495-0aee-bf6b73708882\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Logic App\",\"resourceTypes\":[\"MICROSOFT.LOGIC/WORKFLOWS\",\"Microsoft.Logic/integrationServiceEnvironments\",\"Microsoft.Web/sites\"]}},{\"id\":\"/providers/Microsoft.Support/services/bd329b99-32f4-07bf-22e1-717f87d355b9\",\"name\":\"bd329b99-32f4-07bf-22e1-717f87d355b9\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Logic App on Azure Arc\",\"resourceTypes\":[\"Microsoft.Logic/integrationServiceEnvironments\",\"Microsoft.Logic/Workflows\",\"MICROSOFT.WEB/SITES\"]}},{\"id\":\"/providers/Microsoft.Support/services/65e73690-23aa-be68-83be-a6b9bd188345\",\"name\":\"65e73690-23aa-be68-83be-a6b9bd188345\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Logic App-Integration Service Environment (ISE)\",\"resourceTypes\":[\"Microsoft.Logic/integrationServiceEnvironments\"]}},{\"id\":\"/providers/Microsoft.Support/services/6a2a5a09-c969-3adc-bc12-bfd87296f968\",\"name\":\"6a2a5a09-c969-3adc-bc12-bfd87296f968\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Logic App-Logic App (Standard)\",\"resourceTypes\":[\"Microsoft.Web/sites\"]}},{\"id\":\"/providers/Microsoft.Support/services/68ad5d5e-ba0d-c8d9-7642-1278dfc99ad3\",\"name\":\"68ad5d5e-ba0d-c8d9-7642-1278dfc99ad3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Logz.io on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a1799293-1194-133d-4407-156c57152643\",\"name\":\"a1799293-1194-133d-4407-156c57152643\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Machine Learning\",\"resourceTypes\":[\"Microsoft.MachineLearningServices/workspaces\",\"Microsoft.MachineLearningServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/afd16b5d-3a02-dd9d-8f7f-9768a7345f81\",\"name\":\"afd16b5d-3a02-dd9d-8f7f-9768a7345f81\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Machine Learning Studio (Classic)\",\"resourceTypes\":[\"MICROSOFT.MACHINELEARNING/WORKSPACES\",\"MICROSOFT.MACHINELEARNING/COMMITMENTPLANS\",\"MICROSOFT.MACHINELEARNING/WEBSERVICES\",\"MICROSOFT.MACHINELEARNINGEXPERIMENTATION/ACCOUNTS\",\"MICROSOFT.MACHINELEARNINGMODELMANAGEMENT/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/7fa9504c-364e-66b7-830e-f1333a2e4fe4\",\"name\":\"7fa9504c-364e-66b7-830e-f1333a2e4fe4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Managed Apps Service Catalog\",\"resourceTypes\":[\"Microsoft.Solutions/applicationDefinitions\"]}},{\"id\":\"/providers/Microsoft.Support/services/c967e89c-dd01-34fa-231a-5645bdd79459\",\"name\":\"c967e89c-dd01-34fa-231a-5645bdd79459\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Managed HSM\",\"resourceTypes\":[\"MICROSOFT.KEYVAULT/MANAGEDHSMS\"]}},{\"id\":\"/providers/Microsoft.Support/services/4600d245-9a8d-be9c-b0b7-945467c24186\",\"name\":\"4600d245-9a8d-be9c-b0b7-945467c24186\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Managed Identities for Azure Resources\",\"resourceTypes\":[\"Microsoft.ManagedIdentity/userAssignedIdentities\"]}},{\"id\":\"/providers/Microsoft.Support/services/c6054aa4-96df-3b22-b4bf-1c5b16912def\",\"name\":\"c6054aa4-96df-3b22-b4bf-1c5b16912def\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Managed Instance for Apache Cassandra\",\"resourceTypes\":[\"Microsoft.DocumentDB/cassandraClusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/1b982b2f-8561-caed-b2b3-aed8c249bb07\",\"name\":\"1b982b2f-8561-caed-b2b3-aed8c249bb07\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Managed Prometheus\",\"resourceTypes\":[\"Microsoft.Monitor/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/2c32f727-0b95-8324-22c8-b953c938833c\",\"name\":\"2c32f727-0b95-8324-22c8-b953c938833c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Management Groups\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/c52a04cc-be90-03ef-d76e-80cd1b338fb3\",\"name\":\"c52a04cc-be90-03ef-d76e-80cd1b338fb3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Maps\",\"resourceTypes\":[\"MICROSOFT.MAPS/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/efa0fcb8-3325-6eb7-b451-8e3a853aaead\",\"name\":\"efa0fcb8-3325-6eb7-b451-8e3a853aaead\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Media Service\",\"resourceTypes\":[\"MICROSOFT.MEDIA/MEDIASERVICES\"]}},{\"id\":\"/providers/Microsoft.Support/services/9636b9f4-3013-b4d0-1dbe-8b202575f592\",\"name\":\"9636b9f4-3013-b4d0-1dbe-8b202575f592\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Metrics\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a96cb196-59fe-00a7-5ff7-889765d10494\",\"name\":\"a96cb196-59fe-00a7-5ff7-889765d10494\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Antimalware for Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a3247669-8dd8-ffa6-e0b2-c603cb95bf6c\",\"name\":\"a3247669-8dd8-ffa6-e0b2-c603cb95bf6c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Azure Attestation\",\"resourceTypes\":[\"Microsoft.Attestation/attestationProviders\"]}},{\"id\":\"/providers/Microsoft.Support/services/72c84cfd-1758-f3e1-7c0a-24fd7c10df03\",\"name\":\"72c84cfd-1758-f3e1-7c0a-24fd7c10df03\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Azure Data Manager for Agriculture\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/6d7a548d-93fe-2d06-23d6-8a7f7c9981d1\",\"name\":\"6d7a548d-93fe-2d06-23d6-8a7f7c9981d1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Azure Data Manager for Energy\",\"resourceTypes\":[\"Microsoft.OpenEnergyPlatform/energyServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/fca74ae8-fb8b-53d4-39cb-105200f54379\",\"name\":\"fca74ae8-fb8b-53d4-39cb-105200f54379\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Bing Services\",\"resourceTypes\":[\"Microsoft.Bing\"]}},{\"id\":\"/providers/Microsoft.Support/services/2dd10780-72c7-5527-32c3-2cd565a9857b\",\"name\":\"2dd10780-72c7-5527-32c3-2cd565a9857b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft build of OpenJDK\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/d5bf131f-93ff-a263-91f9-64be70b48a56\",\"name\":\"d5bf131f-93ff-a263-91f9-64be70b48a56\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Cloud for Sovereignty\",\"resourceTypes\":[\"Microsoft.Sovereign\"]}},{\"id\":\"/providers/Microsoft.Support/services/01576e56-6662-d99f-3032-384fd97e95bc\",\"name\":\"01576e56-6662-d99f-3032-384fd97e95bc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Connected Cache for ISPs - Preview\",\"resourceTypes\":[\"Microsoft.ConnectedCache/cacheNodes\",\"Microsoft.ConnectedCache/ispCustomers\"]}},{\"id\":\"/providers/Microsoft.Support/services/49741e2b-0418-835b-8305-2e3992042a28\",\"name\":\"49741e2b-0418-835b-8305-2e3992042a28\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Connected Vehicle Platform\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/89077980-9234-5466-6e41-2b284c668f8f\",\"name\":\"89077980-9234-5466-6e41-2b284c668f8f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Copilot for Azure - Preview\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/d3f5a8bd-677e-f210-8c9a-9b0bd8a2ee8c\",\"name\":\"d3f5a8bd-677e-f210-8c9a-9b0bd8a2ee8c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Defender External Attack Surface Management (EASM)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/fb1b37f8-2716-86c2-c2e1-684b5292d401\",\"name\":\"fb1b37f8-2716-86c2-c2e1-684b5292d401\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Defender for Cloud\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/7dc03991-4dcf-cf5a-904f-35a243ca5551\",\"name\":\"7dc03991-4dcf-cf5a-904f-35a243ca5551\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Defender for Cloud Apps\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/809e8afe-489e-08b0-95f2-08f835a383e8\",\"name\":\"809e8afe-489e-08b0-95f2-08f835a383e8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Defender for Identity\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/82c88f35-1b8e-f274-ec11-c6efdd6dd099\",\"name\":\"82c88f35-1b8e-f274-ec11-c6efdd6dd099\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Defender for IoT\",\"resourceTypes\":[\"MICROSOFT.IOTSECURITY/DEFENDERSETTINGS\"]}},{\"id\":\"/providers/Microsoft.Support/services/8b8d5b15-1c6d-7fa4-3884-e134fa0adaa7\",\"name\":\"8b8d5b15-1c6d-7fa4-3884-e134fa0adaa7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Dev Box\",\"resourceTypes\":[\"Microsoft.DevCenter\",\"Microsoft.DevCenter/devCenters\"]}},{\"id\":\"/providers/Microsoft.Support/services/d3830e0b-a1b1-923f-d2bb-7ebc41dcbc39\",\"name\":\"d3830e0b-a1b1-923f-d2bb-7ebc41dcbc39\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Admin Center\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/7505036e-a364-8354-e894-56d394dd4a61\",\"name\":\"7505036e-a364-8354-e894-56d394dd4a61\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra App Integration and Development\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/3a36c1ba-f910-91c3-9f17-075d63c9488a\",\"name\":\"3a36c1ba-f910-91c3-9f17-075d63c9488a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Directories, Domains, and Objects\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a69d6bc1-d1db-61e6-2668-451ae3784f86\",\"name\":\"a69d6bc1-d1db-61e6-2668-451ae3784f86\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Domain Services (Microsoft Managed - DCaaS)\",\"resourceTypes\":[\"Microsoft.AAD/DomainServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/2f0b4593-ca4c-370c-e36c-b90be88a1597\",\"name\":\"2f0b4593-ca4c-370c-e36c-b90be88a1597\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra External ID - Preview\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/b98631b1-d53a-3ac4-3181-aef136ec703d\",\"name\":\"b98631b1-d53a-3ac4-3181-aef136ec703d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Governance, Compliance and Reporting\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/0d9aae13-ff27-8f75-6e18-304247937071\",\"name\":\"0d9aae13-ff27-8f75-6e18-304247937071\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Permissions Management\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/516fe906-3a1a-2878-02fd-8dd37ea207de\",\"name\":\"516fe906-3a1a-2878-02fd-8dd37ea207de\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Sign-in and Multifactor Authentication\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/38a234dd-6baf-d93b-2c48-5a735a3550ed\",\"name\":\"38a234dd-6baf-d93b-2c48-5a735a3550ed\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra User Provisioning and Synchronization\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/a39b9b14-4aaa-dfe8-6f47-b9c80f5a4784\",\"name\":\"a39b9b14-4aaa-dfe8-6f47-b9c80f5a4784\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Verified ID\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/de523f2e-d57a-43fc-a83e-753029ef5cf8\",\"name\":\"de523f2e-d57a-43fc-a83e-753029ef5cf8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Entra Workload ID\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/3f816e19-cbf7-f192-a725-63c0ebe7d07d\",\"name\":\"3f816e19-cbf7-f192-a725-63c0ebe7d07d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Genomics\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/7a37b2ec-b31a-5ca4-944c-84c916847ba1\",\"name\":\"7a37b2ec-b31a-5ca4-944c-84c916847ba1\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Advanced APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/e76cbe81-8c12-1f2f-85c7-6064644116a4\",\"name\":\"e76cbe81-8c12-1f2f-85c7-6064644116a4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Authentication and Authorization (Azure AD)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/437e7d94-a4b3-68bd-a23a-087f528d47dd\",\"name\":\"437e7d94-a4b3-68bd-a23a-087f528d47dd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Files, Sites and Lists APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/50a1a89e-a735-61ed-fcf6-770df069182a\",\"name\":\"50a1a89e-a735-61ed-fcf6-770df069182a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph High-Capacity APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/af52d398-4ddb-1e1d-2c6c-6767634b015e\",\"name\":\"af52d398-4ddb-1e1d-2c6c-6767634b015e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Messages, Calendar and Contacts APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/c9a40005-5758-83c0-32b8-9e7910c21595\",\"name\":\"c9a40005-5758-83c0-32b8-9e7910c21595\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Other Microsoft Graph APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/46c9bb77-3f94-f481-375c-911d8f0f9a0e\",\"name\":\"46c9bb77-3f94-f481-375c-911d8f0f9a0e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Teamwork APIs (Teams)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/53aa5987-de52-9110-f612-9fe34980e53a\",\"name\":\"53aa5987-de52-9110-f612-9fe34980e53a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Graph Users, Groups, and Identity and Access APIs\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/389d15a1-c6fa-bbb6-f3fd-523a62a2b3c5\",\"name\":\"389d15a1-c6fa-bbb6-f3fd-523a62a2b3c5\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Intune\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/f2aa2432-80da-d759-72e7-9aec7cc0c2ed\",\"name\":\"f2aa2432-80da-d759-72e7-9aec7cc0c2ed\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Playwright Testing - Preview\",\"resourceTypes\":[\"Microsoft.AzurePlaywrightService/accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/a674bd96-b6a2-0636-3fb9-c665e6497b88\",\"name\":\"a674bd96-b6a2-0636-3fb9-c665e6497b88\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Purview\",\"resourceTypes\":[\"Microsoft.Purview/Accounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/9cd60433-a646-8748-7e7f-fd0781fea78e\",\"name\":\"9cd60433-a646-8748-7e7f-fd0781fea78e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Sentinel\",\"resourceTypes\":[\"Microsoft.SecurityInsightsArg/Sentinel\"]}},{\"id\":\"/providers/Microsoft.Support/services/5280bdc9-af4d-0716-24b9-4ec6b7523c01\",\"name\":\"5280bdc9-af4d-0716-24b9-4ec6b7523c01\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Microsoft Test Base\",\"resourceTypes\":[\"Microsoft.TestBase/testBaseAccounts/packages\",\"Microsoft.TestBase/testBaseAccounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/4b38e388-9d77-9c61-da1e-4d92d751e51f\",\"name\":\"4b38e388-9d77-9c61-da1e-4d92d751e51f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Modular Datacenter (MDC)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/862cfc3c-3296-e210-caa9-716705ec3d34\",\"name\":\"862cfc3c-3296-e210-caa9-716705ec3d34\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Native New Relic Service\",\"resourceTypes\":[\"NewRelic.Observability\"]}},{\"id\":\"/providers/Microsoft.Support/services/b7743438-942e-ef29-9abc-589fd697fb9e\",\"name\":\"b7743438-942e-ef29-9abc-589fd697fb9e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Network Performance Monitor (NPM)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/01c5defa-028b-c44f-cefa-e5d836887f2e\",\"name\":\"01c5defa-028b-c44f-cefa-e5d836887f2e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Network Virtual Appliance\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/29297681-a8c0-eaa9-341f-f72630a5b9c3\",\"name\":\"29297681-a8c0-eaa9-341f-f72630a5b9c3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Network Watcher\",\"resourceTypes\":[\"Microsoft.Network/networkWatchers\",\"Microsoft.Network/networkWatchers/connectionMonitors\",\"Microsoft.Network/networkWatchers/flowLogs\",\"Microsoft.Network/networkWatchers/lenses\",\"Microsoft.Network/networkWatchers/pingMeshes\"]}},{\"id\":\"/providers/Microsoft.Support/services/b773917a-ba16-d351-b92e-3f0a6a2e65ac\",\"name\":\"b773917a-ba16-d351-b92e-3f0a6a2e65ac\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"NGINX on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/b9710604-e660-5d57-1b18-3aef73bd21d3\",\"name\":\"b9710604-e660-5d57-1b18-3aef73bd21d3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Notification Hub\",\"resourceTypes\":[\"MICROSOFT.NOTIFICATIONHUBS/NAMESPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/e7735f37-971a-bdb3-8222-3628413e826a\",\"name\":\"e7735f37-971a-bdb3-8222-3628413e826a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Nutanix Cluster on Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/cac35d2a-0335-5628-57ff-db564fda4f3a\",\"name\":\"cac35d2a-0335-5628-57ff-db564fda4f3a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Odyssey\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/176fac6b-1982-68b4-6f2e-3e5d3a0c99a4\",\"name\":\"176fac6b-1982-68b4-6f2e-3e5d3a0c99a4\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Open Datasets\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/7d7bdc73-e381-941a-28e6-b60656de5df0\",\"name\":\"7d7bdc73-e381-941a-28e6-b60656de5df0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"OpenAI\",\"resourceTypes\":[\"Microsoft.CognitiveServices\",\"MICROSOFT.COGNITIVESERVICES/ACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/9b3c3bfb-dd53-97dc-1879-90567cfe2a7c\",\"name\":\"9b3c3bfb-dd53-97dc-1879-90567cfe2a7c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Oracle Database@Azure\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/3e5e1bc3-2000-2473-a9cd-35edf7ae7f5f\",\"name\":\"3e5e1bc3-2000-2473-a9cd-35edf7ae7f5f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Partner Solutions\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/fae15df4-4549-8074-e6ab-11ca2b5a1645\",\"name\":\"fae15df4-4549-8074-e6ab-11ca2b5a1645\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Peering Service\",\"resourceTypes\":[\"Microsoft.Peering/peerings\",\"Microsoft.Peering/peeringServices\"]}},{\"id\":\"/providers/Microsoft.Support/services/6d3f465f-843e-e142-40aa-fd1eda4c80c8\",\"name\":\"6d3f465f-843e-e142-40aa-fd1eda4c80c8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Portal\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/8c9051b3-9579-a47e-8506-dd80435c8c6f\",\"name\":\"8c9051b3-9579-a47e-8506-dd80435c8c6f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Power BI\",\"resourceTypes\":[\"Microsoft.PowerBIDedicated/Capacities\",\"Microsoft.Fabric\"]}},{\"id\":\"/providers/Microsoft.Support/services/86d840c0-45c7-7931-24bc-f976ddc54c1c\",\"name\":\"86d840c0-45c7-7931-24bc-f976ddc54c1c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Power BI Report Server in VM\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/17cbfbe8-fbbe-a755-4cbc-14e025c370cd\",\"name\":\"17cbfbe8-fbbe-a755-4cbc-14e025c370cd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"PyTorch Enterprise\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/5d4f816f-f02c-f8f8-a8f4-423509f8b036\",\"name\":\"5d4f816f-f02c-f8f8-a8f4-423509f8b036\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Queue Storage\",\"resourceTypes\":[\"MICROSOFT.CLASSICSTORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGE/STORAGEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/351dadd2-b167-7960-06bc-be843b705826\",\"name\":\"351dadd2-b167-7960-06bc-be843b705826\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Relay\",\"resourceTypes\":[\"MICROSOFT.RELAY/NAMESPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/4b218fe9-a91b-9143-05e3-da8c5a9bd5c7\",\"name\":\"4b218fe9-a91b-9143-05e3-da8c5a9bd5c7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Remote Rendering\",\"resourceTypes\":[\"Microsoft.MixedReality/RemoteRenderingAccounts\"]}},{\"id\":\"/providers/Microsoft.Support/services/c2804d27-8e0a-f2a3-8540-f4318f539ff6\",\"name\":\"c2804d27-8e0a-f2a3-8540-f4318f539ff6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Role Based Access Control (RBAC) for Azure Resources (IAM)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/dd1ed832-cfdd-b06b-d11b-77b590a10d4c\",\"name\":\"dd1ed832-cfdd-b06b-d11b-77b590a10d4c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SAP HANA Large Instance\",\"resourceTypes\":[\"Microsoft.HanaOnAzure/sapMonitors\",\"Microsoft.HanaOnAzure/hanaInstances\"]}},{\"id\":\"/providers/Microsoft.Support/services/f90fce27-e23e-9db8-cbf3-0f9a879b3a62\",\"name\":\"f90fce27-e23e-9db8-cbf3-0f9a879b3a62\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SCOM Managed Instance\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/1b9679f1-9cb9-a8db-549e-2fcdfbb89e7c\",\"name\":\"1b9679f1-9cb9-a8db-549e-2fcdfbb89e7c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Search\",\"resourceTypes\":[\"MICROSOFT.SEARCH/SEARCHSERVICES\"]}},{\"id\":\"/providers/Microsoft.Support/services/0abb876a-a5f2-b881-f49e-dc6157fd07bd\",\"name\":\"0abb876a-a5f2-b881-f49e-dc6157fd07bd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Security Incident Response\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89\",\"name\":\"06bfd9d3-516b-d5c6-5802-169c800dec89\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Service and subscription limits (quotas)\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/23e2c469-4b37-ebf5-0a3f-72e8b1407301\",\"name\":\"23e2c469-4b37-ebf5-0a3f-72e8b1407301\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Service Bus\",\"resourceTypes\":[\"MICROSOFT.SERVICEBUS/NAMESPACES\"]}},{\"id\":\"/providers/Microsoft.Support/services/a730ab7a-33ae-c83a-bca5-4935433e38ff\",\"name\":\"a730ab7a-33ae-c83a-bca5-4935433e38ff\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Service Fabric\",\"resourceTypes\":[\"MICROSOFT.SERVICEFABRIC/CLUSTERS\",\"Microsoft.ServiceFabric/managedclusters\"]}},{\"id\":\"/providers/Microsoft.Support/services/c9d3b345-6b9c-bc78-88f5-4867854e925a\",\"name\":\"c9d3b345-6b9c-bc78-88f5-4867854e925a\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Service Fabric Managed Cluster\",\"resourceTypes\":[\"Microsoft.ServiceFabric/managedclusters\",\"MICROSOFT.SERVICEFABRIC/CLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/a76b7230-2d2f-b294-8189-319db5e5d116\",\"name\":\"a76b7230-2d2f-b294-8189-319db5e5d116\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Service Fabric on Linux\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/bfd77156-870d-17ee-c9d1-5450f390f63f\",\"name\":\"bfd77156-870d-17ee-c9d1-5450f390f63f\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SignalR Service\",\"resourceTypes\":[\"Microsoft.SignalRService/SignalR\"]}},{\"id\":\"/providers/Microsoft.Support/services/e4ddc3b0-1e6d-aaa2-4279-8e5027351d76\",\"name\":\"e4ddc3b0-1e6d-aaa2-4279-8e5027351d76\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Spatial Anchors\",\"resourceTypes\":[\"Microsoft.MixedReality\"]}},{\"id\":\"/providers/Microsoft.Support/services/95412dd5-f222-a91f-98a6-144a84418c66\",\"name\":\"95412dd5-f222-a91f-98a6-144a84418c66\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SQL Database\",\"resourceTypes\":[\"MICROSOFT.SQL/SERVERS\",\"MICROSOFT.SQL/SERVERS/DATABASES\",\"MICROSOFT.SQL/SERVERS/ELASTICPOOLS\"]}},{\"id\":\"/providers/Microsoft.Support/services/9b629e89-4ea0-53ec-9409-1579b8c41453\",\"name\":\"9b629e89-4ea0-53ec-9409-1579b8c41453\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SQL Managed Instance\",\"resourceTypes\":[\"MICROSOFT.SQL/MANAGEDINSTANCES\"]}},{\"id\":\"/providers/Microsoft.Support/services/40ef020e-8ae7-8d57-b538-9153c47cee69\",\"name\":\"40ef020e-8ae7-8d57-b538-9153c47cee69\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SQL Server in VM - Linux\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/53b14ef9-9b69-4d8c-a458-b8e4c132a815\",\"name\":\"53b14ef9-9b69-4d8c-a458-b8e4c132a815\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"SQL Server in VM - Windows\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\",\"Microsoft.SqlVirtualMachine/sqlVirtualMachines\"]}},{\"id\":\"/providers/Microsoft.Support/services/0ef96678-fa9b-9ea2-2cdc-39ee36e1f4db\",\"name\":\"0ef96678-fa9b-9ea2-2cdc-39ee36e1f4db\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Start-Stop V2\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/94a7406a-b31a-86f8-49f9-377d30047b25\",\"name\":\"94a7406a-b31a-86f8-49f9-377d30047b25\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Static Web Apps\",\"resourceTypes\":[\"Microsoft.Web/staticSites\"]}},{\"id\":\"/providers/Microsoft.Support/services/6a9c20ed-85c7-c289-d5e2-560da8f2a7c8\",\"name\":\"6a9c20ed-85c7-c289-d5e2-560da8f2a7c8\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Storage Account Management\",\"resourceTypes\":[\"MICROSOFT.CLASSICSTORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGE/STORAGEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/94c5f326-7ab1-6ef3-c3c0-8e0b5a584085\",\"name\":\"94c5f326-7ab1-6ef3-c3c0-8e0b5a584085\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Storage Explorer\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/30e73728-5d13-cbf4-5c57-3036ed1067fd\",\"name\":\"30e73728-5d13-cbf4-5c57-3036ed1067fd\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Stream Analytics\",\"resourceTypes\":[\"MICROSOFT.STREAMANALYTICS/STREAMINGJOBS\",\"MICROSOFT.STREAMANALYTICS/CLUSTERS\"]}},{\"id\":\"/providers/Microsoft.Support/services/f3dc5421-79ef-1efa-41a5-42bf3cbb52c6\",\"name\":\"f3dc5421-79ef-1efa-41a5-42bf3cbb52c6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Subscription management\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/8418caaf-4634-b4c0-d9b6-27c266b6b67b\",\"name\":\"8418caaf-4634-b4c0-d9b6-27c266b6b67b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Table Storage\",\"resourceTypes\":[\"MICROSOFT.CLASSICSTORAGE/STORAGEACCOUNTS\",\"MICROSOFT.STORAGE/STORAGEACCOUNTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/e4d6b9b0-79d5-3133-c4db-460a39e8a622\",\"name\":\"e4d6b9b0-79d5-3133-c4db-460a39e8a622\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Time Series Insights\",\"resourceTypes\":[\"MICROSOFT.TIMESERIESINSIGHTS/ENVIRONMENTS\"]}},{\"id\":\"/providers/Microsoft.Support/services/66fff2d6-c34e-ac9b-d1ba-6631ab20989e\",\"name\":\"66fff2d6-c34e-ac9b-d1ba-6631ab20989e\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Traffic Manager - DNS based load balancing\",\"resourceTypes\":[\"MICROSOFT.NETWORK/TRAFFICMANAGERPROFILES\"]}},{\"id\":\"/providers/Microsoft.Support/services/99dd2657-2a74-8c5a-951f-23abdd7851c6\",\"name\":\"99dd2657-2a74-8c5a-951f-23abdd7851c6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Universal Print\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/722ccc66-c988-d2ac-1ec6-b7aebc857f2d\",\"name\":\"722ccc66-c988-d2ac-1ec6-b7aebc857f2d\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Citrix\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/b6492139-637a-c445-ee02-5dc6749337c3\",\"name\":\"b6492139-637a-c445-ee02-5dc6749337c3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Cloud Foundry\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc\",\"name\":\"cddd3eb5-1830-b494-44fd-782f691479dc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Linux\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/de8937fc-74cc-daa7-2639-e1fe433dcb87\",\"name\":\"de8937fc-74cc-daa7-2639-e1fe433dcb87\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running RedHat\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/f66fac5c-01e5-e8db-2ef8-e1a98a88e214\",\"name\":\"f66fac5c-01e5-e8db-2ef8-e1a98a88e214\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running SAP\",\"resourceTypes\":[\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/98e5cec8-2650-28c1-92e8-0ecaa232eec0\",\"name\":\"98e5cec8-2650-28c1-92e8-0ecaa232eec0\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running SUSE\",\"resourceTypes\":[\"Microsoft.Compute/virtualmachines\"]}},{\"id\":\"/providers/Microsoft.Support/services/2340ae8b-c745-572f-6ea8-661d68c08bd7\",\"name\":\"2340ae8b-c745-572f-6ea8-661d68c08bd7\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Ubuntu\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/6f16735c-b0ae-b275-ad3a-03479cfa1396\",\"name\":\"6f16735c-b0ae-b275-ad3a-03479cfa1396\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Windows\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}},{\"id\":\"/providers/Microsoft.Support/services/e9e31931-21fa-d50a-e6e7-e37d5d784591\",\"name\":\"e9e31931-21fa-d50a-e6e7-e37d5d784591\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine Scale Sets\",\"resourceTypes\":[\"MICROSOFT.COMPUTE/VIRTUALMACHINESCALESETS\",\"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\"]}},{\"id\":\"/providers/Microsoft.Support/services/b25271d3-6431-dfbc-5f12-5693326809b3\",\"name\":\"b25271d3-6431-dfbc-5f12-5693326809b3\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Network\",\"resourceTypes\":[\"MICROSOFT.NETWORK/VIRTUALNETWORKS\",\"MICROSOFT.CLASSICNETWORK/VIRTUALNETWORKS\"]}},{\"id\":\"/providers/Microsoft.Support/services/e980d0ab-c6c3-894b-8a1d-74564e159e3b\",\"name\":\"e980d0ab-c6c3-894b-8a1d-74564e159e3b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Network NAT\",\"resourceTypes\":[\"Microsoft.Network/NATGateways\"]}},{\"id\":\"/providers/Microsoft.Support/services/d3b69052-33aa-55e7-6d30-ebb7040f9766\",\"name\":\"d3b69052-33aa-55e7-6d30-ebb7040f9766\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual WAN\",\"resourceTypes\":[\"MICROSOFT.NETWORK/VIRTUALWANS\",\"MICROSOFT.NETWORK/virtualHubs\"]}},{\"id\":\"/providers/Microsoft.Support/services/4268a408-46cf-347c-6806-09dc5967d2f6\",\"name\":\"4268a408-46cf-347c-6806-09dc5967d2f6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"VM insights\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/5a813df8-0060-7015-892d-9f17015a6706\",\"name\":\"5a813df8-0060-7015-892d-9f17015a6706\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"VPN Gateway\",\"resourceTypes\":[\"MICROSOFT.NETWORK/VIRTUALNETWORKGATEWAYS\",\"MICROSOFT.NETWORK/CONNECTIONS\"]}},{\"id\":\"/providers/Microsoft.Support/services/b452a42b-3779-64de-532c-8a32738357a6\",\"name\":\"b452a42b-3779-64de-532c-8a32738357a6\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Web App (Linux)\",\"resourceTypes\":[\"MICROSOFT.WEB/SITES\"]}},{\"id\":\"/providers/Microsoft.Support/services/1890289e-747c-7ef6-b4f5-b1dbb0bead28\",\"name\":\"1890289e-747c-7ef6-b4f5-b1dbb0bead28\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Web App (Windows)\",\"resourceTypes\":[\"MICROSOFT.WEB/SITES\"]}},{\"id\":\"/providers/Microsoft.Support/services/d40f17bb-8b19-117c-f69a-d1be4187f657\",\"name\":\"d40f17bb-8b19-117c-f69a-d1be4187f657\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Web App for Containers\",\"resourceTypes\":[\"MICROSOFT.WEB/SITES\"]}},{\"id\":\"/providers/Microsoft.Support/services/272fd66a-e8b1-260f-0066-01caae8895cf\",\"name\":\"272fd66a-e8b1-260f-0066-01caae8895cf\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Web App on Azure Arc\",\"resourceTypes\":[\"Microsoft.Web/Sites\"]}},{\"id\":\"/providers/Microsoft.Support/services/6ad1058f-d6a2-bfcb-9aad-1ab895e39c02\",\"name\":\"6ad1058f-d6a2-bfcb-9aad-1ab895e39c02\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Web Application Firewall (WAF)\",\"resourceTypes\":[\"Microsoft.Network/FrontDoorWebApplicationFirewallPolicies\",\"Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies\"]}},{\"id\":\"/providers/Microsoft.Support/services/f7eb21eb-eb80-8817-4bd8-c0d89e93833b\",\"name\":\"f7eb21eb-eb80-8817-4bd8-c0d89e93833b\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Windows Admin Center in the Azure Portal\",\"resourceTypes\":[]}},{\"id\":\"/providers/Microsoft.Support/services/66ea76c9-5d31-568e-cf01-919415d2756c\",\"name\":\"66ea76c9-5d31-568e-cf01-919415d2756c\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Windows Update for Business Reports\",\"resourceTypes\":[]}}]}", + "isContentBase64": false + } + }, + "Get-AzSupportService+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "b83a71ce-9890-4baf-844d-7f57f1d16436" ], + "CommandName": [ "Get-AzSupportService" ], + "FullCommandName": [ "Get-AzSupportService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11998" ], + "x-ms-request-id": [ "8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], + "x-ms-correlation-request-id": [ "8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T195803Z:8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], + "Date": [ "Fri, 26 Jan 2024 19:58:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "323" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc\",\"name\":\"cddd3eb5-1830-b494-44fd-782f691479dc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Linux\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 index b40d7bf565ed..9b02c2994c2d 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 @@ -15,12 +15,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportService')) } Describe 'Get-AzSupportService' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + $services = Get-AzSupportService + $services.Count | Should -BeGreaterOrEqual 1 } - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $service = Get-AzSupportService -Name "cddd3eb5-1830-b494-44fd-782f691479dc" + $service.Count | Should -Be 1 } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json new file mode 100644 index 000000000000..6332a6259ed8 --- /dev/null +++ b/src/Support/Support.Autorest/test/env.json @@ -0,0 +1,4 @@ +{ + "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", + "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd" +} diff --git a/tools/AzPreview/AzPreview.psm1 b/tools/AzPreview/AzPreview.psm1 new file mode 100644 index 000000000000..8d37550dd09b --- /dev/null +++ b/tools/AzPreview/AzPreview.psm1 @@ -0,0 +1,308 @@ +# +# Script module for module 'AzPreview' that is executed when 'AzPreview' is imported in a PowerShell session. +# +# Generated by: Microsoft Corporation +# +# Generated on: 01/25/2024 10:17:44 +# + +$PSDefaultParameterValues.Clear() +Set-StrictMode -Version Latest + +function Test-DotNet +{ + try + { + if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) + { + throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." + } + } + catch [System.Management.Automation.DriveNotFoundException] + { + Write-Verbose ".NET Framework version check failed." + } +} + +function Preload-Assembly { + param ( + [string] + $AssemblyDirectory + ) + if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) + { + try + { + Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { + try + { + Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null + } + catch { + Write-Verbose $_ + } + } + } + catch {} + } +} + +if ($true -and ($PSEdition -eq 'Desktop')) +{ + if ($PSVersionTable.PSVersion -lt [Version]'5.1') + { + throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." + } + + Test-DotNet +} + +if ($true -and ($PSEdition -eq 'Core')) +{ + if ($PSVersionTable.PSVersion -lt [Version]'6.2.4') + { + throw "Current Az version doesn't support PowerShell Core versions lower than 6.2.4. Please upgrade to PowerShell Core 6.2.4 or higher." + } +} + +if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) +{ + Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { + . $_.FullName + } +} + +# [windows powershell] preload assemblies + + +# [windows powershell] preload module alc assemblies +$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") +Preload-Assembly -AssemblyDirectory $preloadPath + +if (Get-Module AzureRM.profile -ErrorAction Ignore) +{ + Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") + throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") +} + +$module = Get-Module Az.Accounts + if ($module -ne $null -and $module.Version -lt [System.Version]"2.13.2") +{ + Write-Error "This module requires Az.Accounts version 2.13.2. An earlier version of Az.Accounts is imported in the current PowerShell session. Please open a new session before importing this module. This error could indicate that multiple incompatible versions of the Azure PowerShell cmdlets are installed on your system. Please see https://aka.ms/azps-version-error for troubleshooting information." -ErrorAction Stop +} +elseif ($module -eq $null) +{ + Import-Module Az.Accounts -MinimumVersion 2.13.2 -Scope Global +} +Import-Module Az.ADDomainServices -RequiredVersion 0.2.0 -Global +Import-Module Az.Advisor -RequiredVersion 2.0.0 -Global +Import-Module Az.Aks -RequiredVersion 6.0.0 -Global +Import-Module Az.Alb -RequiredVersion 0.1.0 -Global +Import-Module Az.AlertsManagement -RequiredVersion 0.6.1 -Global +Import-Module Az.AnalysisServices -RequiredVersion 1.1.4 -Global +Import-Module Az.ApiManagement -RequiredVersion 4.0.2 -Global +Import-Module Az.App -RequiredVersion 1.0.0 -Global +Import-Module Az.AppConfiguration -RequiredVersion 1.3.0 -Global +Import-Module Az.ApplicationInsights -RequiredVersion 2.2.2 -Global +Import-Module Az.ArcResourceBridge -RequiredVersion 1.0.0 -Global +Import-Module Az.Attestation -RequiredVersion 2.0.0 -Global +Import-Module Az.Automanage -RequiredVersion 1.0.0 -Global +Import-Module Az.Automation -RequiredVersion 1.9.1 -Global +Import-Module Az.BareMetal -RequiredVersion 0.1.0 -Global +Import-Module Az.Batch -RequiredVersion 3.5.0 -Global +Import-Module Az.Billing -RequiredVersion 2.0.3 -Global +Import-Module Az.BillingBenefits -RequiredVersion 0.1.0 -Global +Import-Module Az.Blueprint -RequiredVersion 0.4.2 -Global +Import-Module Az.BotService -RequiredVersion 0.5.0 -Global +Import-Module Az.Cdn -RequiredVersion 3.1.1 -Global +Import-Module Az.ChangeAnalysis -RequiredVersion 0.1.0 -Global +Import-Module Az.CloudService -RequiredVersion 2.0.0 -Global +Import-Module Az.CognitiveServices -RequiredVersion 1.14.1 -Global +Import-Module Az.Communication -RequiredVersion 0.2.0 -Global +Import-Module Az.Compute -RequiredVersion 7.1.0 -Global +Import-Module Az.ConfidentialLedger -RequiredVersion 1.0.0 -Global +Import-Module Az.Confluent -RequiredVersion 0.2.0 -Global +Import-Module Az.ConnectedKubernetes -RequiredVersion 0.10.0 -Global +Import-Module Az.ConnectedMachine -RequiredVersion 0.5.2 -Global +Import-Module Az.ConnectedNetwork -RequiredVersion 0.1.0 -Global +Import-Module Az.ConnectedVMware -RequiredVersion 0.1.0 -Global +Import-Module Az.ContainerInstance -RequiredVersion 4.0.0 -Global +Import-Module Az.ContainerRegistry -RequiredVersion 4.1.2 -Global +Import-Module Az.CosmosDB -RequiredVersion 1.13.0 -Global +Import-Module Az.CostManagement -RequiredVersion 0.3.1 -Global +Import-Module Az.CustomLocation -RequiredVersion 0.1.0 -Global +Import-Module Az.CustomProviders -RequiredVersion 0.1.0 -Global +Import-Module Az.Dashboard -RequiredVersion 0.1.1 -Global +Import-Module Az.DataBox -RequiredVersion 0.3.0 -Global +Import-Module Az.DataBoxEdge -RequiredVersion 1.1.0 -Global +Import-Module Az.Databricks -RequiredVersion 1.7.1 -Global +Import-Module Az.Datadog -RequiredVersion 0.1.0 -Global +Import-Module Az.DataFactory -RequiredVersion 1.18.0 -Global +Import-Module Az.DataLakeAnalytics -RequiredVersion 1.0.3 -Global +Import-Module Az.DataLakeStore -RequiredVersion 1.3.0 -Global +Import-Module Az.DataMigration -RequiredVersion 0.14.3 -Global +Import-Module Az.DataProtection -RequiredVersion 2.1.0 -Global +Import-Module Az.DataShare -RequiredVersion 1.0.1 -Global +Import-Module Az.DedicatedHsm -RequiredVersion 0.3.0 -Global +Import-Module Az.DeploymentManager -RequiredVersion 1.1.0 -Global +Import-Module Az.DesktopVirtualization -RequiredVersion 4.2.0 -Global +Import-Module Az.DevCenter -RequiredVersion 1.0.0 -Global +Import-Module Az.DeviceProvisioningServices -RequiredVersion 0.10.0 -Global +Import-Module Az.DeviceUpdate -RequiredVersion 0.1.0 -Global +Import-Module Az.DevSpaces -RequiredVersion 0.7.4 -Global +Import-Module Az.DevTestLabs -RequiredVersion 1.0.2 -Global +Import-Module Az.DigitalTwins -RequiredVersion 0.2.0 -Global +Import-Module Az.DiskPool -RequiredVersion 0.3.0 -Global +Import-Module Az.Dns -RequiredVersion 1.2.0 -Global +Import-Module Az.DnsResolver -RequiredVersion 0.2.1 -Global +Import-Module Az.DynatraceObservability -RequiredVersion 0.1.0 -Global +Import-Module Az.EdgeOrder -RequiredVersion 0.1.0 -Global +Import-Module Az.Elastic -RequiredVersion 0.1.0 -Global +Import-Module Az.ElasticSan -RequiredVersion 0.1.2 -Global +Import-Module Az.EventGrid -RequiredVersion 1.6.0 -Global +Import-Module Az.EventHub -RequiredVersion 4.2.0 -Global +Import-Module Az.FluidRelay -RequiredVersion 0.1.0 -Global +Import-Module Az.FrontDoor -RequiredVersion 1.10.0 -Global +Import-Module Az.Functions -RequiredVersion 4.0.7 -Global +Import-Module Az.GraphServices -RequiredVersion 0.1.0 -Global +Import-Module Az.GuestConfiguration -RequiredVersion 0.11.0 -Global +Import-Module Az.HanaOnAzure -RequiredVersion 0.3.0 -Global +Import-Module Az.HDInsight -RequiredVersion 6.0.2 -Global +Import-Module Az.HdInsightOnAks -RequiredVersion 0.1.0 -Global +Import-Module Az.HealthBot -RequiredVersion 0.1.0 -Global +Import-Module Az.HealthcareApis -RequiredVersion 2.0.0 -Global +Import-Module Az.HPCCache -RequiredVersion 0.1.1 -Global +Import-Module Az.ImageBuilder -RequiredVersion 0.4.0 -Global +Import-Module Az.ImportExport -RequiredVersion 0.2.0 -Global +Import-Module Az.IotCentral -RequiredVersion 0.10.0 -Global +Import-Module Az.IotHub -RequiredVersion 2.7.5 -Global +Import-Module Az.KeyVault -RequiredVersion 5.0.1 -Global +Import-Module Az.KubernetesConfiguration -RequiredVersion 0.7.0 -Global +Import-Module Az.Kusto -RequiredVersion 2.3.0 -Global +Import-Module Az.LabServices -RequiredVersion 0.1.0 -Global +Import-Module Az.LoadTesting -RequiredVersion 1.0.0 -Global +Import-Module Az.LogicApp -RequiredVersion 1.5.0 -Global +Import-Module Az.Logz -RequiredVersion 0.1.0 -Global +Import-Module Az.MachineLearning -RequiredVersion 1.1.3 -Global +Import-Module Az.MachineLearningServices -RequiredVersion 1.0.0 -Global +Import-Module Az.Maintenance -RequiredVersion 1.4.1 -Global +Import-Module Az.ManagedServiceIdentity -RequiredVersion 1.2.0 -Global +Import-Module Az.ManagedServices -RequiredVersion 3.0.0 -Global +Import-Module Az.ManagementPartner -RequiredVersion 0.7.3 -Global +Import-Module Az.Maps -RequiredVersion 0.8.0 -Global +Import-Module Az.MariaDb -RequiredVersion 0.2.0 -Global +Import-Module Az.Marketplace -RequiredVersion 0.3.0 -Global +Import-Module Az.MarketplaceOrdering -RequiredVersion 2.0.0 -Global +Import-Module Az.Media -RequiredVersion 1.1.2 -Global +Import-Module Az.Migrate -RequiredVersion 2.2.0 -Global +Import-Module Az.MixedReality -RequiredVersion 0.2.0 -Global +Import-Module Az.MobileNetwork -RequiredVersion 0.3.0 -Global +Import-Module Az.Monitor -RequiredVersion 5.0.0 -Global +Import-Module Az.MonitoringSolutions -RequiredVersion 0.1.0 -Global +Import-Module Az.MySql -RequiredVersion 1.1.1 -Global +Import-Module Az.NetAppFiles -RequiredVersion 0.13.2 -Global +Import-Module Az.Network -RequiredVersion 7.1.0 -Global +Import-Module Az.NetworkAnalytics -RequiredVersion 0.1.0 -Global +Import-Module Az.NetworkCloud -RequiredVersion 1.0.0 -Global +Import-Module Az.NetworkFunction -RequiredVersion 0.1.2 -Global +Import-Module Az.NewRelic -RequiredVersion 0.1.0 -Global +Import-Module Az.Nginx -RequiredVersion 0.1.0 -Global +Import-Module Az.NotificationHubs -RequiredVersion 1.1.2 -Global +Import-Module Az.OperationalInsights -RequiredVersion 3.2.0 -Global +Import-Module Az.Orbital -RequiredVersion 0.1.1 -Global +Import-Module Az.PaloAltoNetworks -RequiredVersion 0.2.0 -Global +Import-Module Az.Peering -RequiredVersion 0.4.0 -Global +Import-Module Az.PolicyInsights -RequiredVersion 1.6.4 -Global +Import-Module Az.Portal -RequiredVersion 0.1.0 -Global +Import-Module Az.PostgreSql -RequiredVersion 1.1.0 -Global +Import-Module Az.PowerBIEmbedded -RequiredVersion 2.0.0 -Global +Import-Module Az.PrivateDns -RequiredVersion 1.0.4 -Global +Import-Module Az.ProviderHub -RequiredVersion 0.2.0 -Global +Import-Module Az.Purview -RequiredVersion 0.2.0 -Global +Import-Module Az.Quantum -RequiredVersion 0.1.0 -Global +Import-Module Az.Qumulo -RequiredVersion 0.1.0 -Global +Import-Module Az.Quota -RequiredVersion 0.1.1 -Global +Import-Module Az.RecoveryServices -RequiredVersion 6.6.2 -Global +Import-Module Az.RedisCache -RequiredVersion 1.8.1 -Global +Import-Module Az.RedisEnterpriseCache -RequiredVersion 1.2.0 -Global +Import-Module Az.Relay -RequiredVersion 2.0.0 -Global +Import-Module Az.Reservations -RequiredVersion 0.12.0 -Global +Import-Module Az.ResourceGraph -RequiredVersion 0.13.0 -Global +Import-Module Az.ResourceMover -RequiredVersion 1.2.0 -Global +Import-Module Az.Resources -RequiredVersion 6.12.1 -Global +Import-Module Az.Search -RequiredVersion 0.10.0 -Global +Import-Module Az.Security -RequiredVersion 1.5.1 -Global +Import-Module Az.SecurityInsights -RequiredVersion 3.1.1 -Global +Import-Module Az.SelfHelp -RequiredVersion 0.1.1 -Global +Import-Module Az.ServiceBus -RequiredVersion 3.0.0 -Global +Import-Module Az.ServiceFabric -RequiredVersion 3.3.1 -Global +Import-Module Az.ServiceLinker -RequiredVersion 0.2.0 -Global +Import-Module Az.SignalR -RequiredVersion 2.0.0 -Global +Import-Module Az.SpringCloud -RequiredVersion 0.3.0 -Global +Import-Module Az.Sql -RequiredVersion 4.12.0 -Global +Import-Module Az.SqlVirtualMachine -RequiredVersion 2.1.0 -Global +Import-Module Az.Ssh -RequiredVersion 0.2.0 -Global +Import-Module Az.StackHCI -RequiredVersion 2.2.3 -Global +Import-Module Az.StackHCIVM -RequiredVersion 0.1.0 -Global +Import-Module Az.Storage -RequiredVersion 6.0.1 -Global +Import-Module Az.StorageCache -RequiredVersion 0.1.0 -Global +Import-Module Az.StorageMover -RequiredVersion 1.2.0 -Global +Import-Module Az.StorageSync -RequiredVersion 2.1.0 -Global +Import-Module Az.StreamAnalytics -RequiredVersion 2.0.0 -Global +Import-Module Az.Subscription -RequiredVersion 0.11.0 -Global +Import-Module Az.Support -RequiredVersion 1.0.0 -Global +Import-Module Az.Synapse -RequiredVersion 3.0.4 -Global +Import-Module Az.TimeSeriesInsights -RequiredVersion 0.2.0 -Global +Import-Module Az.TrafficManager -RequiredVersion 1.2.2 -Global +Import-Module Az.VMware -RequiredVersion 0.5.0 -Global +Import-Module Az.VoiceServices -RequiredVersion 0.1.1 -Global +Import-Module Az.Websites -RequiredVersion 3.1.2 -Global +Import-Module Az.WindowsIotServices -RequiredVersion 0.1.0 -Global +Import-Module Az.Workloads -RequiredVersion 0.1.0 -Global + + +if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) +{ + Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { + . $_.FullName + } +} + +$FilteredCommands = @() + +if ($Env:ACC_CLOUD -eq $null) +{ + $FilteredCommands | ForEach-Object { + + $existingDefault = $false + foreach ($key in $global:PSDefaultParameterValues.Keys) + { + if ($_ -like "$key") + { + $existingDefault = $true + } + } + + if (!$existingDefault) + { + $global:PSDefaultParameterValues.Add($_, + { + if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) + { + $context = Get-AzureRmContext + } + else + { + $context = Get-AzContext + } + if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { + $context.ExtendedProperties["Default Resource Group"] + } + }) + } + } +} + + From b1b98b7adfc74c6da6cfedebf39f6601caee60b4 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Fri, 26 Jan 2024 15:45:46 -0500 Subject: [PATCH 18/27] tests for problem classification --- ...upportProblemClassification.Recording.json | 84 +++++++++++++++++++ ...t-AzSupportProblemClassification.Tests.ps1 | 10 ++- .../test/Get-AzSupportService.Recording.json | 28 +++---- .../test/Get-AzSupportService.Tests.ps1 | 4 +- src/Support/Support.Autorest/test/env.json | 4 +- src/Support/Support.Autorest/test/utils.ps1 | 2 + 6 files changed, 111 insertions(+), 21 deletions(-) create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Recording.json diff --git a/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Recording.json new file mode 100644 index 000000000000..955ac8a453ab --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Recording.json @@ -0,0 +1,84 @@ +{ + "Get-AzSupportProblemClassification+[NoContext]+List+$GET+https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "5571242e-8ae1-47b7-8fdc-3dd60c4ab2e1" ], + "CommandName": [ "Get-AzSupportProblemClassification" ], + "FullCommandName": [ "Get-AzSupportProblemClassification_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-request-id": [ "d8545724-ece9-4f22-aa21-61fb305938b9" ], + "x-ms-correlation-request-id": [ "d8545724-ece9-4f22-aa21-61fb305938b9" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T204042Z:d8545724-ece9-4f22-aa21-61fb305938b9" ], + "Date": [ "Fri, 26 Jan 2024 20:40:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "26238" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/3ec1a070-f242-9ecf-5a7c-e1a88ce029ef\",\"name\":\"3ec1a070-f242-9ecf-5a7c-e1a88ce029ef\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Add or update VAT, tax id, PO number or profile information\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/0c04be9f-8434-be1f-8a08-a6a25a730844\",\"name\":\"0c04be9f-8434-be1f-8a08-a6a25a730844\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / Help me discover the service prices\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/15da022a-a108-c566-b944-c6d46ccd6479\",\"name\":\"15da022a-a108-c566-b944-c6d46ccd6479\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / Help me validate or confirm my discount\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/1ca6ee84-ab07-56ee-b6d2-d508c7120710\",\"name\":\"1ca6ee84-ab07-56ee-b6d2-d508c7120710\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / I have questions about my spending limit\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/dc1655d0-baa0-76a1-8521-717732d5eb5a\",\"name\":\"dc1655d0-baa0-76a1-8521-717732d5eb5a\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / Help me use the azure price sheet API\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/a5f5229a-130c-e227-564e-b8a9cd46889d\",\"name\":\"a5f5229a-130c-e227-564e-b8a9cd46889d\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / Help me with azure calculator\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/60595739-9b86-7e7a-c25d-9cdaa50c1bb7\",\"name\":\"60595739-9b86-7e7a-c25d-9cdaa50c1bb7\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Pricing / Help understanding Marketplace pricing\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/dd3d4786-02f7-c870-a97a-ac839db5d668\",\"name\":\"dd3d4786-02f7-c870-a97a-ac839db5d668\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manage Payment Methods / Need help updating or adding a credit card\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/a71b6140-5657-404b-f83e-a7dd1b63fcbe\",\"name\":\"a71b6140-5657-404b-f83e-a7dd1b63fcbe\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manage Payment Methods / Switch to pay by invoice as my default payment method\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f3f57428-9dc8-14ed-8aef-08608b50afca\",\"name\":\"f3f57428-9dc8-14ed-8aef-08608b50afca\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manage Payment Methods / My payment method is not supported\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/820ff4e1-cf84-8e12-ffd3-9d39859eaf36\",\"name\":\"820ff4e1-cf84-8e12-ffd3-9d39859eaf36\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manage Payment Methods / I have questions about invoice pay\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/82bab3c4-81d9-1d79-d378-28e552a15945\",\"name\":\"82bab3c4-81d9-1d79-d378-28e552a15945\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manage Payment Methods / Need help deleting my credit card\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/e25dacdb-2c22-d5c9-108e-c43a5e43872b\",\"name\":\"e25dacdb-2c22-d5c9-108e-c43a5e43872b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / Need assistance to make a payment immediately\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/8037967a-e364-eaec-d31f-6ad96f9cd5d8\",\"name\":\"8037967a-e364-eaec-d31f-6ad96f9cd5d8\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / Do not have permission to pay\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/0b4d6687-73c7-bdf8-3850-b6547d62dde4\",\"name\":\"0b4d6687-73c7-bdf8-3850-b6547d62dde4\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / My invoice shows due or past due\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5a2df32b-7b4b-3fbb-c8b6-074c434bd2f4\",\"name\":\"5a2df32b-7b4b-3fbb-c8b6-074c434bd2f4\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / Need to split payment across multiple credit cards\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f7550cf2-c00a-c3af-053e-34a3358cf87e\",\"name\":\"f7550cf2-c00a-c3af-053e-34a3358cf87e\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / No current bill due and am still being notified to pay\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/6fa8f384-22e6-8a05-ed17-2a120115a840\",\"name\":\"6fa8f384-22e6-8a05-ed17-2a120115a840\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / Request my payment history or payment confirmation\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/6a5af2ab-1163-e069-9c22-608606161a7a\",\"name\":\"6a5af2ab-1163-e069-9c22-608606161a7a\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Make a Payment / Subscription has been warned or disabled (past due)\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/8b6c2e08-cd75-c2d1-7a12-e4daf1e16f2e\",\"name\":\"8b6c2e08-cd75-c2d1-7a12-e4daf1e16f2e\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Refund request\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/41271b30-6cc3-7c87-f423-f1e4e24adde5\",\"name\":\"41271b30-6cc3-7c87-f423-f1e4e24adde5\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / Help me understand my cost recommendations\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/9bc71cda-662c-0336-aee7-6f556d7c0fd2\",\"name\":\"9bc71cda-662c-0336-aee7-6f556d7c0fd2\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I have an issue with Cost Management APIs (Query, Exports, Budgets, Forecast or Usage details)\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/6bb902c6-b903-0b03-f17f-37ca5ce605c2\",\"name\":\"6bb902c6-b903-0b03-f17f-37ca5ce605c2\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I see costs but other data is missing or not as expected (i.e. tags, service names etc.)\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/4f8c94bd-0ef0-52b2-1714-7dd131b166fd\",\"name\":\"4f8c94bd-0ef0-52b2-1714-7dd131b166fd\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I need assistance with alerts, budgets or forecasted cost\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/9359c605-5360-f754-2195-99e1f42a598b\",\"name\":\"9359c605-5360-f754-2195-99e1f42a598b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I see unexpected costs in \\\"Cost Analysis\\\" or in \\\"PowerBI\\\"\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/76ea362a-2219-833b-d371-d91738e4e31a\",\"name\":\"76ea362a-2219-833b-d371-d91738e4e31a\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / Cost data is inconsistent or lagging\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/a7096926-dcd0-2504-ba61-a40ec81b9566\",\"name\":\"a7096926-dcd0-2504-ba61-a40ec81b9566\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I get an error when setting up exports or I didn\u0027t receive the exported file\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/750bbf33-ccd8-21b8-03be-db99ca762450\",\"name\":\"750bbf33-ccd8-21b8-03be-db99ca762450\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / Need assistance with AWS connector issue or I see unexpected AWS costs\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/44114011-6a66-e902-c00f-e419b6b4509f\",\"name\":\"44114011-6a66-e902-c00f-e419b6b4509f\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I have access but cost is not loading for me\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/1347da70-df34-c898-c57c-c9cec0583a10\",\"name\":\"1347da70-df34-c898-c57c-c9cec0583a10\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Cost Management / I don\u0027t have access to view costs in Cost Management\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d0f16bf7-e011-3f3b-1c26-3147f84e0896\",\"name\":\"d0f16bf7-e011-3f3b-1c26-3147f84e0896\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Assistance with bill / Help understanding my invoice (bill)\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/03f04074-1627-89b7-17c4-77c3c9b55b9f\",\"name\":\"03f04074-1627-89b7-17c4-77c3c9b55b9f\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Assistance with bill / Status says due but the bill has been paid\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/11289ac1-29a3-5dba-fe8c-6559600c1e73\",\"name\":\"11289ac1-29a3-5dba-fe8c-6559600c1e73\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Assistance with bill / Help with a billing discrepancy\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/3a8fd88e-339a-6504-9b84-7db4599837af\",\"name\":\"3a8fd88e-339a-6504-9b84-7db4599837af\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Assistance with bill / Help understanding Marketplace charges\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/52d1b697-5365-fa19-ab4d-d4ceaaf328d7\",\"name\":\"52d1b697-5365-fa19-ab4d-d4ceaaf328d7\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / Cannot find my invoice in portal\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/38f682be-aeed-3200-71a0-f936d685282f\",\"name\":\"38f682be-aeed-3200-71a0-f936d685282f\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / Do not have permissions for PDF download\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/47a98709-5a83-542e-8440-3496e3fda1c9\",\"name\":\"47a98709-5a83-542e-8440-3496e3fda1c9\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / I did not receive my invoice in email\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/387abc16-2008-1b1f-c3e1-7afb63f5098a\",\"name\":\"387abc16-2008-1b1f-c3e1-7afb63f5098a\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / I do not have the right permission to view my bill or usage\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5ddfcd60-f370-9c08-a958-9cc6a8688431\",\"name\":\"5ddfcd60-f370-9c08-a958-9cc6a8688431\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / I get an error when clicking a link in the email\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/24ef3e81-5dbb-2a40-8a4c-418cc613ef9d\",\"name\":\"24ef3e81-5dbb-2a40-8a4c-418cc613ef9d\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / Marketplace bill or usage\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f2e09e07-3865-ae49-5e9a-2870516cdfd9\",\"name\":\"f2e09e07-3865-ae49-5e9a-2870516cdfd9\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / My invoice is for another subscription\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/79eb5685-3d64-be55-68dc-c41179d7c981\",\"name\":\"79eb5685-3d64-be55-68dc-c41179d7c981\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / Need help downloading my invoice or multiple invoices\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/ecb7268e-7d07-835a-aa2b-b0f95e5ae8ff\",\"name\":\"ecb7268e-7d07-835a-aa2b-b0f95e5ae8ff\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Request a copy of my bill (invoice) or usage / Understand how to share invoices to other people\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5c3e2a5f-619a-335b-b5ab-9dec9537d66b\",\"name\":\"5c3e2a5f-619a-335b-b5ab-9dec9537d66b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / I\u0027m still getting charged for a cancelled service\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5685912f-1c11-616b-1d48-54646f49a5ea\",\"name\":\"5685912f-1c11-616b-1d48-54646f49a5ea\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / Help me understand my Free Trial charges\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/30fd914b-84c4-9878-c348-87de5223dc5b\",\"name\":\"30fd914b-84c4-9878-c348-87de5223dc5b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / Help me cancel my service or support plan\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/68765ad3-2cfe-920b-18b5-9ca977df1471\",\"name\":\"68765ad3-2cfe-920b-18b5-9ca977df1471\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / I have an issue with credit or refund or tax applied to a charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d4ffa241-c319-13a5-cf72-18c8f4b9b342\",\"name\":\"d4ffa241-c319-13a5-cf72-18c8f4b9b342\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / Help understanding Azure Marketplace charges\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/98f985ac-58b0-dcd0-8a99-23f137c288d7\",\"name\":\"98f985ac-58b0-dcd0-8a99-23f137c288d7\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Unexpected Charges / My subscription was cancelled but still charged\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/37d2c92f-e1fc-9173-2daf-7f8edd412381\",\"name\":\"37d2c92f-e1fc-9173-2daf-7f8edd412381\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with App Service charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/542043da-522c-e9e1-590f-a551ab37f7a6\",\"name\":\"542043da-522c-e9e1-590f-a551ab37f7a6\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with Azure Backup charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/7b86583b-9733-f7c1-02b1-bd3a7fa8558e\",\"name\":\"7b86583b-9733-f7c1-02b1-bd3a7fa8558e\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with charges across multiple services\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/e5bc37bf-a84c-c670-441e-c4cdb47714c5\",\"name\":\"e5bc37bf-a84c-c670-441e-c4cdb47714c5\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with Compute charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f8f1f8e4-8540-e805-6378-97742bb001b7\",\"name\":\"f8f1f8e4-8540-e805-6378-97742bb001b7\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with Cosmos DB charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/0f70d968-b783-7176-a5f7-f1d92c31b8b4\",\"name\":\"0f70d968-b783-7176-a5f7-f1d92c31b8b4\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with Network charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/26db1bad-be11-26c0-117a-99a319742140\",\"name\":\"26db1bad-be11-26c0-117a-99a319742140\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with SQL or SQL DB charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/715fad75-73f4-0edc-57da-2c02a1f0a4b0\",\"name\":\"715fad75-73f4-0edc-57da-2c02a1f0a4b0\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Issue with Storage charge\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d546f717-039c-b8f5-587c-8e7e332cf9ea\",\"name\":\"d546f717-039c-b8f5-587c-8e7e332cf9ea\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Disagreement with a charge (workload or service) / Service is not listed above\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/057f6615-3650-5370-57b2-e1a64af3b037\",\"name\":\"057f6615-3650-5370-57b2-e1a64af3b037\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Cancel or change an existing reservation\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/69103c54-633a-058d-a66b-6ab02c9c806e\",\"name\":\"69103c54-633a-058d-a66b-6ab02c9c806e\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / How am I billed for Windows and SQL when reservation discounts is applied?\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/0b759e67-2619-49bf-441d-ed952a5f32c5\",\"name\":\"0b759e67-2619-49bf-441d-ed952a5f32c5\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Reservation billing and invoice\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f3d95681-a339-3bdb-9825-1f3c09d376f2\",\"name\":\"f3d95681-a339-3bdb-9825-1f3c09d376f2\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Unable to purchase or questions before purchase\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/fb851540-8284-7777-9d25-ffbfe5ec8eb8\",\"name\":\"fb851540-8284-7777-9d25-ffbfe5ec8eb8\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Which resource (VM, etc.) consumed the reservation?\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/cff282e6-4e7b-2958-af63-320cff7dcbab\",\"name\":\"cff282e6-4e7b-2958-af63-320cff7dcbab\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Reservation underutilized or not applying to my resource\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/7ee3d30a-42e4-51ca-0e55-8bd196669a5f\",\"name\":\"7ee3d30a-42e4-51ca-0e55-8bd196669a5f\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Reserved instance requests / Help me optimize RI usage for existing resources\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/a2906ca5-ef36-e2d4-52dd-3144be0dd172\",\"name\":\"a2906ca5-ef36-e2d4-52dd-3144be0dd172\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Billing API / Download consumption data by using billing API\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/112c798f-1ff9-8168-193d-a7f171564dac\",\"name\":\"112c798f-1ff9-8168-193d-a7f171564dac\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Billing API / General billing API and EA API questions\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/0d4803c5-724f-3049-9f74-09f07d81cb1b\",\"name\":\"0d4803c5-724f-3049-9f74-09f07d81cb1b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Account Review\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/f091b598-a0c2-772a-bee9-568d56779c04\",\"name\":\"f091b598-a0c2-772a-bee9-568d56779c04\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / Billing or invoice questions\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/944bdf7b-3375-a3f3-957b-0306ac993372\",\"name\":\"944bdf7b-3375-a3f3-957b-0306ac993372\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / Cost or usage questions\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/52e00350-405d-1e7c-e5fd-bc8f4738ed69\",\"name\":\"52e00350-405d-1e7c-e5fd-bc8f4738ed69\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / My issue is not listed\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/7caced09-0d62-891e-890d-d88e87504d08\",\"name\":\"7caced09-0d62-891e-890d-d88e87504d08\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / Questions about exchanging reservation requests for savings plan\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5b1cbeee-4eed-b611-5a5e-774b9958f28b\",\"name\":\"5b1cbeee-4eed-b611-5a5e-774b9958f28b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / Unable to purchase, questions prior to purchase, auto-renew\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/5aa9c6b3-2f36-a99e-d140-335a69d50188\",\"name\":\"5aa9c6b3-2f36-a99e-d140-335a69d50188\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Savings plan for compute / Understand how savings plan is applied to existing resources\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/862c2d62-79ce-bf01-2553-c2a28eccf38d\",\"name\":\"862c2d62-79ce-bf01-2553-c2a28eccf38d\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manager Approval / EA or CSP fraud user\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/ad10b773-eebd-d629-12f4-ec2da368b18b\",\"name\":\"ad10b773-eebd-d629-12f4-ec2da368b18b\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manager Approval / Non-CSS Misroute\"}},{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/e305bfcf-501d-3b47-4ef1-0a906246de59\",\"name\":\"e305bfcf-501d-3b47-4ef1-0a906246de59\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Manager Approval / Technical Misroute\"}}]}", + "isContentBase64": false + } + }, + "Get-AzSupportProblemClassification+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d0f16bf7-e011-3f3b-1c26-3147f84e0896?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d0f16bf7-e011-3f3b-1c26-3147f84e0896?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "82f05f05-7387-4a4c-9795-7e0703e758f0" ], + "CommandName": [ "Get-AzSupportProblemClassification" ], + "FullCommandName": [ "Get-AzSupportProblemClassification_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11998" ], + "x-ms-request-id": [ "57bb896f-232c-430e-a009-6b6abb431406" ], + "x-ms-correlation-request-id": [ "57bb896f-232c-430e-a009-6b6abb431406" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T204042Z:57bb896f-232c-430e-a009-6b6abb431406" ], + "Date": [ "Fri, 26 Jan 2024 20:40:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "330" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc/problemClassifications/d0f16bf7-e011-3f3b-1c26-3147f84e0896\",\"name\":\"d0f16bf7-e011-3f3b-1c26-3147f84e0896\",\"type\":\"Microsoft.Support/problemClassifications\",\"properties\":{\"displayName\":\"Assistance with bill / Help understanding my invoice (bill)\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Tests.ps1 index 1590d131e972..4e9e86e7b173 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportProblemClassification.Tests.ps1 @@ -15,16 +15,18 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportProblemClassific } Describe 'Get-AzSupportProblemClassification' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + $problemClassifications = Get-AzSupportProblemClassification -ServiceName $env.BillingServiceId + $problemClassifications.Count | Should -BeGreaterThan 1 } It 'GetViaIdentityService' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $problemClassification = Get-AzSupportProblemClassification -ServiceName $env.BillingServiceId -Name $env.BillingProblemClassificationId + $problemClassification.Count | Should -Be 1 } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json index 599600f5c724..f7d45c7cfb9a 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json +++ b/src/Support/Support.Autorest/test/Get-AzSupportService.Recording.json @@ -7,7 +7,7 @@ "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "47d76974-ba1c-455a-840d-a0ebba272757" ], + "x-ms-client-request-id": [ "b4ce0743-e5fd-4afb-b251-d30aaa38cf0e" ], "CommandName": [ "Get-AzSupportService" ], "FullCommandName": [ "Get-AzSupportService_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -26,10 +26,10 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], - "x-ms-request-id": [ "29a30a49-679e-4f91-9d99-edac0b9a925a" ], - "x-ms-correlation-request-id": [ "29a30a49-679e-4f91-9d99-edac0b9a925a" ], - "x-ms-routing-request-id": [ "EASTUS:20240126T195803Z:29a30a49-679e-4f91-9d99-edac0b9a925a" ], - "Date": [ "Fri, 26 Jan 2024 19:58:02 GMT" ] + "x-ms-request-id": [ "5d0c55b1-c31d-4ed6-8c5c-bcdca20a2a0b" ], + "x-ms-correlation-request-id": [ "5d0c55b1-c31d-4ed6-8c5c-bcdca20a2a0b" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T203957Z:5d0c55b1-c31d-4ed6-8c5c-bcdca20a2a0b" ], + "Date": [ "Fri, 26 Jan 2024 20:39:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "100765" ], @@ -40,15 +40,15 @@ "isContentBase64": false } }, - "Get-AzSupportService+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc?api-version=2022-09-01-preview+1": { + "Get-AzSupportService+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc?api-version=2022-09-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc?api-version=2022-09-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc?api-version=2022-09-01-preview", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "b83a71ce-9890-4baf-844d-7f57f1d16436" ], + "x-ms-client-request-id": [ "e55e46b4-a52f-4b6f-a938-3250d17730d1" ], "CommandName": [ "Get-AzSupportService" ], "FullCommandName": [ "Get-AzSupportService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -67,17 +67,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-tenant-reads": [ "11998" ], - "x-ms-request-id": [ "8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], - "x-ms-correlation-request-id": [ "8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], - "x-ms-routing-request-id": [ "EASTUS:20240126T195803Z:8da5f066-ef4d-4c45-85b3-d4f7e3f76c55" ], - "Date": [ "Fri, 26 Jan 2024 19:58:02 GMT" ] + "x-ms-request-id": [ "81ed0df1-1114-42c1-86e8-877f8d75e7d6" ], + "x-ms-correlation-request-id": [ "81ed0df1-1114-42c1-86e8-877f8d75e7d6" ], + "x-ms-routing-request-id": [ "EASTUS:20240126T203957Z:81ed0df1-1114-42c1-86e8-877f8d75e7d6" ], + "Date": [ "Fri, 26 Jan 2024 20:39:57 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "323" ], + "Content-Length": [ "223" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc\",\"name\":\"cddd3eb5-1830-b494-44fd-782f691479dc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Virtual Machine running Linux\",\"resourceTypes\":[\"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES\",\"MICROSOFT.COMPUTE/VIRTUALMACHINES\"]}}", + "Content": "{\"id\":\"/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc\",\"name\":\"517f2da6-78fd-0498-4e22-ad26996b1dfc\",\"type\":\"Microsoft.Support/services\",\"properties\":{\"displayName\":\"Billing\",\"resourceTypes\":[]}}", "isContentBase64": false } } diff --git a/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 index 9b02c2994c2d..7eef43b9215b 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportService.Tests.ps1 @@ -17,11 +17,11 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportService')) Describe 'Get-AzSupportService' { It 'List' { $services = Get-AzSupportService - $services.Count | Should -BeGreaterOrEqual 1 + $services.Count | Should -BeGreaterThan 1 } It 'Get' { - $service = Get-AzSupportService -Name "cddd3eb5-1830-b494-44fd-782f691479dc" + $service = Get-AzSupportService -Name $env.BillingServiceId $service.Count | Should -Be 1 } diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index 6332a6259ed8..0a75f196eaab 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,4 +1,6 @@ { "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", - "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd" + "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", + "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc" } diff --git a/src/Support/Support.Autorest/test/utils.ps1 b/src/Support/Support.Autorest/test/utils.ps1 index f8497fbd7da0..31ee758dea12 100644 --- a/src/Support/Support.Autorest/test/utils.ps1 +++ b/src/Support/Support.Autorest/test/utils.ps1 @@ -43,6 +43,8 @@ function setupEnv() { # as default. You could change them if needed. $env.SubscriptionId = (Get-AzContext).Subscription.Id $env.Tenant = (Get-AzContext).Tenant.Id + $env.BillingServiceId = "517f2da6-78fd-0498-4e22-ad26996b1dfc" + $env.BillingProblemClassificationId = "d0f16bf7-e011-3f3b-1c26-3147f84e0896" # For any resources you created for test, you should add it to $env here. $envFile = 'env.json' if ($TestMode -eq 'live') { From d19fb890f235f79269df6f5d8d6ce5519135a2e8 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Mon, 29 Jan 2024 10:13:06 -0500 Subject: [PATCH 19/27] try adding erroractionpreference = stop --- .../Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 8147426b244c..ebbe83f3569b 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -127,8 +127,8 @@ param( ${ProxyUseDefaultCredentials} ) - process { + $ErrorActionPreference = 'Stop' Write-Output "file path: " $FilePath $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB From 1d8bed201698e78fd14ee14d86a17e34da5c2ab6 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Mon, 29 Jan 2024 16:26:37 -0500 Subject: [PATCH 20/27] tests for new file workspace --- .../New-AzSupportFileWorkspace.Recording.json | 44 +++++++++++++++++++ .../test/New-AzSupportFileWorkspace.Tests.ps1 | 6 ++- ...ileWorkspacesNoSubscription.Recording.json | 44 +++++++++++++++++++ ...portFileWorkspacesNoSubscription.Tests.ps1 | 6 ++- src/Support/Support.Autorest/test/env.json | 6 +-- .../Support.Autorest/test/localEnv.json | 6 +++ 6 files changed, 105 insertions(+), 7 deletions(-) create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Recording.json create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Recording.json create mode 100644 src/Support/Support.Autorest/test/localEnv.json diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Recording.json b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Recording.json new file mode 100644 index 000000000000..26594e5799c1 --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Recording.json @@ -0,0 +1,44 @@ +{ + "New-AzSupportFileWorkspace+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-788d2c69-ffb3-4b2e-96a0-769089ff7a7a?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-788d2c69-ffb3-4b2e-96a0-769089ff7a7a?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "404e71fa-2256-4f86-975a-efddc3ddead2" ], + "CommandName": [ "New-AzSupportFileWorkspace" ], + "FullCommandName": [ "New-AzSupportFileWorkspace_Create" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-788d2c69-ffb3-4b2e-96a0-769089ff7a7a?api-version=2022-09-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-request-id": [ "acf571a2-cd60-48a9-969c-fa62dcb4ef9e" ], + "x-ms-correlation-request-id": [ "acf571a2-cd60-48a9-969c-fa62dcb4ef9e" ], + "x-ms-routing-request-id": [ "EASTUS:20240129T212426Z:acf571a2-cd60-48a9-969c-fa62dcb4ef9e" ], + "Date": [ "Mon, 29 Jan 2024 21:24:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "334" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-788d2c69-ffb3-4b2e-96a0-769089ff7a7a\",\"name\":\"test-ps-788d2c69-ffb3-4b2e-96a0-769089ff7a7a\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-01-30T21:24:25Z\",\"createdOn\":\"2024-01-29T21:24:25Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 index ed4704fc367b..c51b43b0ad52 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspace.Tests.ps1 @@ -15,7 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileWorkspace')) } Describe 'New-AzSupportFileWorkspace' { - It 'Create' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Create' { + $fileWorkspaceName = "test-ps-$(New-Guid)" + $fileWorkspace = New-AzSupportFileWorkspace -Name $fileWorkspaceName -SubscriptionId $env.SubscriptionId + $fileWorkspace.Name | Should -Be $fileWorkspaceName } } diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Recording.json b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Recording.json new file mode 100644 index 000000000000..f49b88833ebf --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Recording.json @@ -0,0 +1,44 @@ +{ + "New-AzSupportFileWorkspacesNoSubscription+[NoContext]+Create+$PUT+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-a169629b-d263-4ba1-872a-0d79019ca2d3?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-a169629b-d263-4ba1-872a-0d79019ca2d3?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "6003c6f3-0370-42db-9fb6-2e20da8b2a7b" ], + "CommandName": [ "New-AzSupportFileWorkspacesNoSubscription" ], + "FullCommandName": [ "New-AzSupportFileWorkspacesNoSubscription_Create" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-a169629b-d263-4ba1-872a-0d79019ca2d3?api-version=2022-09-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-writes": [ "1199" ], + "x-ms-request-id": [ "14af729f-4c8b-487d-a086-58b16d9d19f8" ], + "x-ms-correlation-request-id": [ "14af729f-4c8b-487d-a086-58b16d9d19f8" ], + "x-ms-routing-request-id": [ "EASTUS:20240129T212541Z:14af729f-4c8b-487d-a086-58b16d9d19f8" ], + "Date": [ "Mon, 29 Jan 2024 21:25:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "283" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-a169629b-d263-4ba1-872a-0d79019ca2d3\",\"name\":\"test-ps-a169629b-d263-4ba1-872a-0d79019ca2d3\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-01-30T21:25:41Z\",\"createdOn\":\"2024-01-29T21:25:41Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 index ff6ee48fcc65..2457c99c7018 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileWorkspacesNoSubscription.Tests.ps1 @@ -15,7 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileWorkspacesNo } Describe 'New-AzSupportFileWorkspacesNoSubscription' { - It 'Create' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Create' { + $fileWorkspaceName = "test-ps-$(New-Guid)" + $fileWorkspace = New-AzSupportFileWorkspacesNoSubscription -Name $fileWorkspaceName + $fileWorkspace.Name | Should -Be $fileWorkspaceName } } diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index 0a75f196eaab..05fb02f93e9f 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,6 +1,6 @@ { - "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", + "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", - "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", - "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc" + "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896" } diff --git a/src/Support/Support.Autorest/test/localEnv.json b/src/Support/Support.Autorest/test/localEnv.json new file mode 100644 index 000000000000..87d43c27480d --- /dev/null +++ b/src/Support/Support.Autorest/test/localEnv.json @@ -0,0 +1,6 @@ +{ + "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", + "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", + "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc" +} From 41e373b38a1ef4ee4af79bd16b78039fc77640c3 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 30 Jan 2024 10:33:47 -0500 Subject: [PATCH 21/27] tests for get file workspace --- src/Support/Support.Autorest/README.md | 1 - ...t-AzSupportFileWorkspacesNoSubscription.md | 2 +- .../Get-AzSupportFileWorkspace.Recording.json | 43 +++++++++++++++++++ .../test/Get-AzSupportFileWorkspace.Tests.ps1 | 5 ++- ...ileWorkspacesNoSubscription.Recording.json | 43 +++++++++++++++++++ ...portFileWorkspacesNoSubscription.Tests.ps1 | 5 ++- src/Support/Support.Autorest/test/env.json | 6 ++- src/Support/Support.Autorest/test/utils.ps1 | 7 +++ 8 files changed, 104 insertions(+), 8 deletions(-) create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Recording.json create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Recording.json diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 9f7cc45dce8c..4635f8edfd3e 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -82,7 +82,6 @@ directive: - FileSize - NumberOfChunks - where: - verb: New subject: FileWorkspacesNoSubscription parameter-name: FileWorkspaceName set: diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md index 8694b5cc60ca..3bcbb2e49472 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspacesNoSubscription.md @@ -75,7 +75,7 @@ File Workspace Name ```yaml Type: System.String Parameter Sets: Get -Aliases: +Aliases: Name Required: True Position: Named diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Recording.json new file mode 100644 index 000000000000..17c6f20ff4e5 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Recording.json @@ -0,0 +1,43 @@ +{ + "Get-AzSupportFileWorkspace+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "041c6579-0787-44ad-aaa1-ae473436f07b" ], + "CommandName": [ "Get-AzSupportFileWorkspace" ], + "FullCommandName": [ "Get-AzSupportFileWorkspace_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "b752c627-0706-4e1a-bb95-db1b17775e08" ], + "x-ms-correlation-request-id": [ "b752c627-0706-4e1a-bb95-db1b17775e08" ], + "x-ms-routing-request-id": [ "EASTUS:20240130T153256Z:b752c627-0706-4e1a-bb95-db1b17775e08" ], + "Date": [ "Tue, 30 Jan 2024 15:32:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "334" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d\",\"name\":\"test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-01-31T15:32:53Z\",\"createdOn\":\"2024-01-30T15:32:53Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Tests.ps1 index a9cd0b7576e7..8e3530d1d774 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Tests.ps1 @@ -15,8 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportFileWorkspace')) } Describe 'Get-AzSupportFileWorkspace' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $fileWorkspace = Get-AzSupportFileWorkspace -Name $env.FileWorkspaceNameSubscription + $fileWorkspace.Name | Should -Be $env.FileWorkspaceNameSubscription } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Recording.json new file mode 100644 index 000000000000..fcd9fb18d2f5 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Recording.json @@ -0,0 +1,43 @@ +{ + "Get-AzSupportFileWorkspacesNoSubscription+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7e321a52-1564-4b97-a1c2-a57079ec53cc" ], + "CommandName": [ "Get-AzSupportFileWorkspacesNoSubscription" ], + "FullCommandName": [ "Get-AzSupportFileWorkspacesNoSubscription_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-request-id": [ "27f3281f-f92e-487d-bc46-0a21387d2502" ], + "x-ms-correlation-request-id": [ "27f3281f-f92e-487d-bc46-0a21387d2502" ], + "x-ms-routing-request-id": [ "EASTUS:20240130T153259Z:27f3281f-f92e-487d-bc46-0a21387d2502" ], + "Date": [ "Tue, 30 Jan 2024 15:32:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "283" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3\",\"name\":\"test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-01-31T15:32:54Z\",\"createdOn\":\"2024-01-30T15:32:54Z\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Tests.ps1 index fedc1229ffcf..71a90c18b159 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Tests.ps1 @@ -15,8 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportFileWorkspacesNo } Describe 'Get-AzSupportFileWorkspacesNoSubscription' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $fileWorkspace = Get-AzSupportFileWorkspacesNoSubscription -Name $env.FileWorkspaceNameNoSubscription + $fileWorkspace.Name | Should -Be $env.FileWorkspaceNameNoSubscription } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index 05fb02f93e9f..040901da8987 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,6 +1,8 @@ { + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", - "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", - "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896" + "FileWorkspaceNameNoSubscription": "test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3", + "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", + "FileWorkspaceNameSubscription": "test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d" } diff --git a/src/Support/Support.Autorest/test/utils.ps1 b/src/Support/Support.Autorest/test/utils.ps1 index 31ee758dea12..946a5150669b 100644 --- a/src/Support/Support.Autorest/test/utils.ps1 +++ b/src/Support/Support.Autorest/test/utils.ps1 @@ -46,6 +46,13 @@ function setupEnv() { $env.BillingServiceId = "517f2da6-78fd-0498-4e22-ad26996b1dfc" $env.BillingProblemClassificationId = "d0f16bf7-e011-3f3b-1c26-3147f84e0896" # For any resources you created for test, you should add it to $env here. + + $env.FileWorkspaceNameSubscription = "test-ps-$(New-Guid)" + $env.FileWorkspaceNameNoSubscription = "test-ps-$(New-Guid)" + + New-AzSupportFileWorkspace -Name $env.FileWorkspaceNameSubscription + New-AzSupportFileWorkspacesNoSubscription -Name $env.FileWorkspaceNameNoSubscription + $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' From f41fe6c105af0445c1109cede07ad6e9705a86c6 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 30 Jan 2024 12:24:40 -0500 Subject: [PATCH 22/27] more tests --- .../custom/New-AzSupportFileAndUpload.ps1 | 16 ++++---- .../test/New-AzSupportFileAndUpload.Tests.ps1 | 9 ++++- ...pportTicketNameAvailability.Recording.json | 38 +++++++++++++++++++ ...-AzSupportTicketNameAvailability.Tests.ps1 | 5 ++- ...ubscriptionNameAvailability.Recording.json | 38 +++++++++++++++++++ ...tsNoSubscriptionNameAvailability.Tests.ps1 | 5 ++- src/Support/Support.Autorest/test/env.json | 6 +-- .../Support.Autorest/test/files/test.txt | 1 + 8 files changed, 101 insertions(+), 17 deletions(-) create mode 100644 src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Recording.json create mode 100644 src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Recording.json create mode 100644 src/Support/Support.Autorest/test/files/test.txt diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index ebbe83f3569b..b25de32a70e3 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -129,7 +129,7 @@ param( process { $ErrorActionPreference = 'Stop' - Write-Output "file path: " $FilePath + #Write-Output "file path: " + $FilePath $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw @@ -142,15 +142,15 @@ process { throw "File size is greater than the maximum file size of 5 MB" } $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} - Write-Output "Length of byte array: " $FileSize - Write-Output "Max chunk size: " $MaxChunkSize - Write-Output "Chunk Size: " $ChunkSize + # Write-Output "Length of byte array: " $FileSize + # Write-Output "Max chunk size: " $MaxChunkSize + # Write-Output "Chunk Size: " $ChunkSize $NumberOfChunks = [int][Math]::Floor($FileSize / $ChunkSize); If($FileSize % $ChunkSize -gt 0) { $NumberOfChunks++ } - Write-Output "Number of chunks: " $NumberOfChunks + # Write-Output "Number of chunks: " $NumberOfChunks New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @@ -162,9 +162,9 @@ process { # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) while($chunkIndex -lt $NumberOfChunks){ - Write-Output "chunk index: " + $chunkIndex - Write-Output "start index: " + $startIndex - Write-Output "end index: " + $endIndex + # Write-Output "chunk index: " + $chunkIndex + # Write-Output "start index: " + $startIndex + # Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 index 99fd042ba94c..40b23b15c345 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 @@ -15,7 +15,12 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUpload')) } Describe 'New-AzSupportFileAndUpload' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CreateExpanded' { + Write-Host "current path: " + $currentPath + Write-Host "ps script root: " + $PSScriptRoot + $testFilePath = Join-Path $PSScriptRoot files test.txt + Write-Host "test file path: " + $testFilePath + $file = New-AzSupportFileAndUpload -Name "test.txt" -WorkspaceName $env.FileWorkspaceNameSubscription -FilePath $testFilePath + $file.Name | Should -Be "test.txt" } } diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Recording.json b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Recording.json new file mode 100644 index 000000000000..8336a09cf17e --- /dev/null +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Recording.json @@ -0,0 +1,38 @@ +{ + "Test-AzSupportTicketNameAvailability+[NoContext]+CheckExpanded+$POST+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/checkNameAvailability?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/checkNameAvailability?api-version=2022-09-01-preview", + "Content": "{\r\n \"name\": \"test-ps-42dbecba-4472-40af-9db4-1c0f1e9780a1\",\r\n \"type\": \"Microsoft.Support/supportTickets\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "109" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-request-id": [ "2f30b178-d575-4095-9ee7-4ac5f905706f" ], + "x-ms-correlation-request-id": [ "2f30b178-d575-4095-9ee7-4ac5f905706f" ], + "x-ms-routing-request-id": [ "EASTUS:20240130T171835Z:2f30b178-d575-4095-9ee7-4ac5f905706f" ], + "Date": [ "Tue, 30 Jan 2024 17:18:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "22" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"nameAvailable\":true}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 index ffd0b95d403f..d4d844c099cf 100644 --- a/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 @@ -15,8 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzSupportTicketNameAvail } Describe 'Test-AzSupportTicketNameAvailability' { - It 'CheckExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CheckExpanded' { + $result = Test-AzSupportTicketNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets"-SubscriptionId $env.SubscriptionId + $result.NameAvailable | Should -Be $true } It 'Check' -skip { diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Recording.json b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Recording.json new file mode 100644 index 000000000000..3f622f760e71 --- /dev/null +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Recording.json @@ -0,0 +1,38 @@ +{ + "Test-AzSupportTicketsNoSubscriptionNameAvailability+[NoContext]+CheckExpanded+$POST+https://management.azure.com/providers/Microsoft.Support/checkNameAvailability?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/checkNameAvailability?api-version=2022-09-01-preview", + "Content": "{\r\n \"name\": \"test-ps-f0f0df36-66f3-4f4e-9686-80a68bb9d53d\",\r\n \"type\": \"Microsoft.Support/supportTickets\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "109" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-writes": [ "1199" ], + "x-ms-request-id": [ "746f8be3-9ba4-4323-93fa-3567dff84f3f" ], + "x-ms-correlation-request-id": [ "746f8be3-9ba4-4323-93fa-3567dff84f3f" ], + "x-ms-routing-request-id": [ "EASTUS:20240130T172214Z:746f8be3-9ba4-4323-93fa-3567dff84f3f" ], + "Date": [ "Tue, 30 Jan 2024 17:22:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "22" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"nameAvailable\":true}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 index 61df07f6abf0..9fe486df7604 100644 --- a/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 @@ -15,8 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzSupportTicketsNoSubscr } Describe 'Test-AzSupportTicketsNoSubscriptionNameAvailability' { - It 'CheckExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CheckExpanded' { + $result = Test-AzSupportTicketsNoSubscriptionNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets" + $result.NameAvailable | Should -Be $true } It 'Check' -skip { diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index 040901da8987..a17cc5e761f9 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,8 +1,8 @@ { - "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", - "FileWorkspaceNameNoSubscription": "test-ps-43ad6585-c0ac-4a13-8d0e-bb633b8b1db3", + "FileWorkspaceNameNoSubscription": "test-ps-94021760-e8a2-4995-85d4-13e6b443eddb", "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", - "FileWorkspaceNameSubscription": "test-ps-d4adfb8c-f15c-48de-a0b0-8da419bfe51d" + "FileWorkspaceNameSubscription": "test-ps-515d6c7e-beb8-4617-8325-cfd236c4bc5b" } diff --git a/src/Support/Support.Autorest/test/files/test.txt b/src/Support/Support.Autorest/test/files/test.txt new file mode 100644 index 000000000000..30d74d258442 --- /dev/null +++ b/src/Support/Support.Autorest/test/files/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file From 1313bdc479786ed48f5b334566675fe80bca0389 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 31 Jan 2024 13:05:55 -0500 Subject: [PATCH 23/27] add tests for new file and upload, removefile name as a parameter --- src/Support/Support.Autorest/README.md | 10 +++ .../custom/New-AzSupportFileAndUpload.ps1 | 18 ++--- ...w-AzSupportFileAndUploadNoSubscription.ps1 | 34 ++------- .../docs/New-AzSupportFileAndUpload.md | 19 +---- ...ew-AzSupportFileAndUploadNoSubscription.md | 22 +----- .../New-AzSupportFileAndUpload.Recording.json | 73 +++++++++++++++++++ .../test/New-AzSupportFileAndUpload.Tests.ps1 | 2 +- ...FileAndUploadNoSubscription.Recording.json | 73 +++++++++++++++++++ ...pportFileAndUploadNoSubscription.Tests.ps1 | 6 +- src/Support/Support.Autorest/test/env.json | 8 +- 10 files changed, 182 insertions(+), 83 deletions(-) create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Recording.json create mode 100644 src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Recording.json diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 4635f8edfd3e..21359b986604 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -81,6 +81,16 @@ directive: - ChunkSize - FileSize - NumberOfChunks + - where: + subject: UploadFile + parameter-name: FileWorkspaceName + set: + alias: WorkspaceName + - where: + subject: UploadFilesNoSubscription + parameter-name: FileWorkspaceName + set: + alias: WorkspaceName - where: subject: FileWorkspacesNoSubscription parameter-name: FileWorkspaceName diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index b25de32a70e3..01465cc70c1c 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -33,13 +33,6 @@ function New-AzSupportFileAndUpload { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('FileName')] - [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] - [System.String] - # File name. - ${Name}, - [Parameter(Mandatory)] [Alias('FileWorkspaceName')] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] @@ -130,14 +123,19 @@ param( process { $ErrorActionPreference = 'Stop' #Write-Output "file path: " + $FilePath + $FileName = Split-Path $FilePath -Leaf + Write-Output "file name: " $FileName $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB + Write-Output "about to get file content" $FileContentBytes = Get-Content -Path $FilePath -Raw + Write-Output "got file content" if($FileContentBytes -eq $Null){ throw "File cannot be empty" } $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length + Write-Output "file size: " $FileSize if($FileSize -gt $MaxFileSize){ throw "File size is greater than the maximum file size of 5 MB" } @@ -151,8 +149,8 @@ process { $NumberOfChunks++ } # Write-Output "Number of chunks: " $NumberOfChunks - - New-AzSupportFile -SubscriptionId $SubscriptionId -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + $PSBoundParameters.Remove('FilePath') | Out-Null + New-AzSupportFile -SubscriptionId $SubscriptionId -Name $FileName -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters Write-Output "successfully created file" $chunkIndex = 0 @@ -167,7 +165,7 @@ process { # Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $FileName -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 index 3a2943bad258..3504af221f87 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -33,13 +33,6 @@ function New-AzSupportFileAndUploadNoSubscription { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('FileName')] - [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] - [System.String] - # File name. - ${Name}, - [Parameter(Mandatory)] [Alias('FileWorkspaceName')] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Path')] @@ -47,24 +40,6 @@ param( # File workspace name. ${WorkspaceName}, - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Size of each chunk - # ${ChunkSize}, - - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Size of the file to be uploaded - # ${FileSize}, - - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Number of chunks to be uploaded - # ${NumberOfChunk}, - [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] [System.String] @@ -123,6 +98,8 @@ param( process { Write-Output "file path: " $FilePath + $FileName = Split-Path $FilePath -Leaf + Write-Output "file name: " + $FileName $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw @@ -144,8 +121,9 @@ process { $NumberOfChunks++ } Write-Output "Number of chunks: " $NumberOfChunks - - New-AzSupportFilesNoSubscription -Name $Name -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks + + $PSBoundParameters.Remove('FilePath') | Out-Null + New-AzSupportFilesNoSubscription -Name $FileName -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters Write-Output "successfully created file" $chunkIndex = 0 @@ -160,7 +138,7 @@ process { Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFilesNoSubscription -FileName $Name -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent + Invoke-AzSupportUploadFilesNoSubscription -FileName $FileName -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md index 80e62722b876..5ad16d75f57c 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md @@ -13,8 +13,8 @@ Creates and uploads a new file under a workspace for the specified subscription. ## SYNTAX ``` -New-AzSupportFileAndUpload -Name -WorkspaceName -FilePath - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +New-AzSupportFileAndUpload -WorkspaceName -FilePath [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -82,21 +82,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: FileName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -SubscriptionId Azure subscription Id. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md index f7e6c5f919e0..8fc5d23df708 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUploadNoSubscription.md @@ -13,7 +13,7 @@ Creates and uploads a new file under a workspace for the specified subscription. ## SYNTAX ``` -New-AzSupportFileAndUploadNoSubscription -Name -WorkspaceName -FilePath +New-AzSupportFileAndUploadNoSubscription -WorkspaceName -FilePath [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -63,11 +63,6 @@ Accept wildcard characters: False ``` ### -FilePath -[Parameter(Mandatory)] -[Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] -[System.Single] -# Number of chunks to be uploaded -${NumberOfChunk}, Path of the file to be uploaded ```yaml @@ -82,21 +77,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: FileName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -WorkspaceName File workspace name. diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Recording.json b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Recording.json new file mode 100644 index 000000000000..50814bb9bfc5 --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Recording.json @@ -0,0 +1,73 @@ +{ + "New-AzSupportFileAndUpload+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt?api-version=2022-09-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"chunkSize\": 4,\r\n \"fileSize\": 4,\r\n \"numberOfChunks\": 1\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "94" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt?api-version=2022-09-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-request-id": [ "59d1b08c-31eb-494d-bc25-093d996dc150" ], + "x-ms-correlation-request-id": [ "59d1b08c-31eb-494d-bc25-093d996dc150" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T163511Z:59d1b08c-31eb-494d-bc25-093d996dc150" ], + "Date": [ "Wed, 31 Jan 2024 16:35:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "310" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt\",\"name\":\"test.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T16:35:10Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}", + "isContentBase64": false + } + }, + "New-AzSupportFileAndUpload+[NoContext]+CreateExpanded+$POST+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt/upload?api-version=2022-09-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-d72bd42e-ad79-4554-80e9-d5bb00aa45b7/files/test.txt/upload?api-version=2022-09-01-preview", + "Content": "{\r\n \"content\": \"dGVzdA==\",\r\n \"chunkIndex\": 0\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-request-id": [ "1d4dcc21-8c17-4221-a9a0-eb135707f438" ], + "x-ms-correlation-request-id": [ "1d4dcc21-8c17-4221-a9a0-eb135707f438" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T163514Z:1d4dcc21-8c17-4221-a9a0-eb135707f438" ], + "Date": [ "Wed, 31 Jan 2024 16:35:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 index 40b23b15c345..14c18a6585eb 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzSupportFileAndUpload' { Write-Host "ps script root: " + $PSScriptRoot $testFilePath = Join-Path $PSScriptRoot files test.txt Write-Host "test file path: " + $testFilePath - $file = New-AzSupportFileAndUpload -Name "test.txt" -WorkspaceName $env.FileWorkspaceNameSubscription -FilePath $testFilePath + $file = New-AzSupportFileAndUpload -WorkspaceName $env.FileWorkspaceNameSubscription -FilePath $testFilePath $file.Name | Should -Be "test.txt" } } diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Recording.json b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Recording.json new file mode 100644 index 000000000000..8ff312c7cc3f --- /dev/null +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Recording.json @@ -0,0 +1,73 @@ +{ + "New-AzSupportFileAndUploadNoSubscription+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt?api-version=2022-09-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"chunkSize\": 4,\r\n \"fileSize\": 4,\r\n \"numberOfChunks\": 1\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "94" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt?api-version=2022-09-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-writes": [ "1198" ], + "x-ms-request-id": [ "90f689f2-0343-48f3-8966-a163ab814972" ], + "x-ms-correlation-request-id": [ "90f689f2-0343-48f3-8966-a163ab814972" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T180407Z:90f689f2-0343-48f3-8966-a163ab814972" ], + "Date": [ "Wed, 31 Jan 2024 18:04:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "259" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt\",\"name\":\"test.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T18:04:07Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}", + "isContentBase64": false + } + }, + "New-AzSupportFileAndUploadNoSubscription+[NoContext]+CreateExpanded+$POST+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt/upload?api-version=2022-09-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96/files/test.txt/upload?api-version=2022-09-01-preview", + "Content": "{\r\n \"content\": \"dGVzdA==\",\r\n \"chunkIndex\": 0\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-writes": [ "1197" ], + "x-ms-request-id": [ "32e8ee90-14b3-44b3-9577-fdda5b088188" ], + "x-ms-correlation-request-id": [ "32e8ee90-14b3-44b3-9577-fdda5b088188" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T180411Z:32e8ee90-14b3-44b3-9577-fdda5b088188" ], + "Date": [ "Wed, 31 Jan 2024 18:04:10 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 index 26ae97363808..9147215ea806 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUploadNoSubscription.Tests.ps1 @@ -15,7 +15,9 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUploadNoS } Describe 'New-AzSupportFileAndUploadNoSubscription' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CreateExpanded' { + $testFilePath = Join-Path $PSScriptRoot files test.txt + $file = New-AzSupportFileAndUploadNoSubscription -WorkspaceName $env.FileWorkspaceNameNoSubscription -FilePath $testFilePath + $file.Name | Should -Be "test.txt" } } diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index a17cc5e761f9..f4be1e925a14 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,8 +1,8 @@ { - "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", - "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", - "FileWorkspaceNameNoSubscription": "test-ps-94021760-e8a2-4995-85d4-13e6b443eddb", + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", - "FileWorkspaceNameSubscription": "test-ps-515d6c7e-beb8-4617-8325-cfd236c4bc5b" + "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", + "FileWorkspaceNameNoSubscription": "test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96", + "FileWorkspaceNameSubscription": "test-ps-56fe95cf-25df-4367-85d7-693e55a5f486" } From 5332d08001d05e6e189fb267dd6373f93ac00137 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 31 Jan 2024 13:17:45 -0500 Subject: [PATCH 24/27] remove new files no subscription --- src/Support/Support.Autorest/Az.Support.psd1 | 2 +- src/Support/Support.Autorest/README.md | 4 + .../custom/New-AzSupportFileAndUpload.ps1 | 18 -- .../Support.Autorest/docs/Az.Support.md | 3 - .../docs/New-AzSupportFileAndUpload.md | 5 - .../docs/New-AzSupportFilesNoSubscription.md | 184 ------------------ .../New-AzSupportFilesNoSubscription.md | 22 --- 7 files changed, 5 insertions(+), 233 deletions(-) delete mode 100644 src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md delete mode 100644 src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md diff --git a/src/Support/Support.Autorest/Az.Support.psd1 b/src/Support/Support.Autorest/Az.Support.psd1 index 770f340be842..536c91cde2ff 100644 --- a/src/Support/Support.Autorest/Az.Support.psd1 +++ b/src/Support/Support.Autorest/Az.Support.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Support.private.dll' FormatsToProcess = './Az.Support.format.ps1xml' - FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' + FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support' diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 21359b986604..2ae10d77f563 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -110,6 +110,10 @@ directive: verb: New subject: File hide: true + - where: + verb: New + subject: FilesNoSubscription + hide: true - where: verb: Update subject: File diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 01465cc70c1c..c2f838b8f3b8 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -47,24 +47,6 @@ param( # Azure subscription Id. ${SubscriptionId}, - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Size of each chunk - # ${ChunkSize}, - - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Size of the file to be uploaded - # ${FileSize}, - - # [Parameter(Mandatory)] - # [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] - # [System.Single] - # # Number of chunks to be uploaded - # ${NumberOfChunk}, - [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] [System.String] diff --git a/src/Support/Support.Autorest/docs/Az.Support.md b/src/Support/Support.Autorest/docs/Az.Support.md index 84315c86857c..16545d0abe05 100644 --- a/src/Support/Support.Autorest/docs/Az.Support.md +++ b/src/Support/Support.Autorest/docs/Az.Support.md @@ -74,9 +74,6 @@ Creates and uploads a new file under a workspace for the specified subscription. ### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md) Creates and uploads a new file under a workspace for the specified subscription. -### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md) -Creates a new file under a workspace. - ### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md) Creates a new file workspace for the specified subscription. diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md index 5ad16d75f57c..b3a01345f0e5 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileAndUpload.md @@ -63,11 +63,6 @@ Accept wildcard characters: False ``` ### -FilePath -[Parameter(Mandatory)] -[Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')] -[System.Single] -# Number of chunks to be uploaded -${NumberOfChunk}, Path of the file to be uploaded ```yaml diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index e7e128966b4a..000000000000 --- a/src/Support/Support.Autorest/docs/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,184 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfilesnosubscription -schema: 2.0.0 ---- - -# New-AzSupportFilesNoSubscription - -## SYNOPSIS -Creates a new file under a workspace. - -## SYNTAX - -``` -New-AzSupportFilesNoSubscription -FileName -FileWorkspaceName [-ChunkSize ] - [-FileSize ] [-NumberOfChunk ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Creates a new file under a workspace. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -ChunkSize -Size of each chunk - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileName -File name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: Name - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileSize -Size of the file to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -FileWorkspaceName -File workspace name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: WorkspaceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NumberOfChunk -Number of chunks to be uploaded - -```yaml -Type: System.Single -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md b/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/New-AzSupportFilesNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - From 683579a817e8072d4b7351527312fc97fb341b66 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Wed, 31 Jan 2024 15:51:47 -0500 Subject: [PATCH 25/27] tests for get file --- .../test/Get-AzSupportFile.Recording.json | 84 +++++++++++++++++++ .../test/Get-AzSupportFile.Tests.ps1 | 12 ++- ...zSupportFilesNoSubscription.Recording.json | 84 +++++++++++++++++++ ...Get-AzSupportFilesNoSubscription.Tests.ps1 | 12 ++- .../test/New-AzSupportFileAndUpload.Tests.ps1 | 3 - ...-AzSupportTicketNameAvailability.Tests.ps1 | 11 ++- ...tsNoSubscriptionNameAvailability.Tests.ps1 | 11 ++- src/Support/Support.Autorest/test/env.json | 8 +- .../Support.Autorest/test/files/test2.txt | 1 + src/Support/Support.Autorest/test/utils.ps1 | 6 +- 10 files changed, 210 insertions(+), 22 deletions(-) create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportFile.Recording.json create mode 100644 src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Recording.json create mode 100644 src/Support/Support.Autorest/test/files/test2.txt diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFile.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportFile.Recording.json new file mode 100644 index 000000000000..bc0e1f442b28 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportFile.Recording.json @@ -0,0 +1,84 @@ +{ + "Get-AzSupportFile+[NoContext]+List+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "4b89a6cc-cce6-4c22-a7cf-ec36148bd130" ], + "CommandName": [ "Get-AzSupportFile" ], + "FullCommandName": [ "Get-AzSupportFile_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "c0d7f0f6-5b90-475d-99ed-0bcda9afd749" ], + "x-ms-correlation-request-id": [ "c0d7f0f6-5b90-475d-99ed-0bcda9afd749" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T204836Z:c0d7f0f6-5b90-475d-99ed-0bcda9afd749" ], + "Date": [ "Wed, 31 Jan 2024 20:48:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "324" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T20:48:23Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}]}", + "isContentBase64": false + } + }, + "Get-AzSupportFile+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files/test2.txt?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files/test2.txt?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "38fb9ad8-55b6-4dc2-a2f6-d9632cfaa3f1" ], + "CommandName": [ "Get-AzSupportFile" ], + "FullCommandName": [ "Get-AzSupportFile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-request-id": [ "3400becf-1644-4257-8530-0f22159c8371" ], + "x-ms-correlation-request-id": [ "3400becf-1644-4257-8530-0f22159c8371" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T204839Z:3400becf-1644-4257-8530-0f22159c8371" ], + "Date": [ "Wed, 31 Jan 2024 20:48:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "312" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-0c3b99a5-4267-4823-bac3-9ce954258d71/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T20:48:23Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFile.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportFile.Tests.ps1 index 9472d0a01639..5d3490b2ac3e 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportFile.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportFile.Tests.ps1 @@ -15,16 +15,20 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportFile')) } Describe 'Get-AzSupportFile' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + $files = Get-AzSupportFile -WorkspaceName $env.FileWorkspaceNameSubscription + $files | Should -Not -BeNullOrEmpty + $files.Count | Should -BeGreaterOrEqual 1 } It 'GetViaIdentityFileWorkspace' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $file = Get-AzSupportFile -Name "test2.txt" -WorkspaceName $env.FileWorkspaceNameSubscription + $file | Should -Not -BeNullOrEmpty + $file.Name | Should -Be "test2.txt" } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Recording.json b/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Recording.json new file mode 100644 index 000000000000..603f8c9a1970 --- /dev/null +++ b/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Recording.json @@ -0,0 +1,84 @@ +{ + "Get-AzSupportFilesNoSubscription+[NoContext]+List+$GET+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-c3365113-f08e-4317-936c-3d948a9dc191/files?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-c3365113-f08e-4317-936c-3d948a9dc191/files?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "8b7d8112-3549-4b6f-b5bb-6e37f5025d6e" ], + "CommandName": [ "Get-AzSupportFilesNoSubscription" ], + "FullCommandName": [ "Get-AzSupportFilesNoSubscription_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-request-id": [ "5492f034-1f75-490e-9bbd-cd2cf6206655" ], + "x-ms-correlation-request-id": [ "5492f034-1f75-490e-9bbd-cd2cf6206655" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T205029Z:5492f034-1f75-490e-9bbd-cd2cf6206655" ], + "Date": [ "Wed, 31 Jan 2024 20:50:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "273" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-c3365113-f08e-4317-936c-3d948a9dc191/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T20:50:22Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}]}", + "isContentBase64": false + } + }, + "Get-AzSupportFilesNoSubscription+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-1c0f34c3-a77f-48f8-92ed-4bc40297b575/files/test2.txt?api-version=2022-09-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-1c0f34c3-a77f-48f8-92ed-4bc40297b575/files/test2.txt?api-version=2022-09-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "cf38d6d8-65c4-4d14-89a8-9873739fa276" ], + "CommandName": [ "Get-AzSupportFile" ], + "FullCommandName": [ "Get-AzSupportFile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.3.11", "Az.Support/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "cd7c5450-a2b1-4cf5-ae38-5d66e02e3c73" ], + "x-ms-correlation-request-id": [ "cd7c5450-a2b1-4cf5-ae38-5d66e02e3c73" ], + "x-ms-routing-request-id": [ "EASTUS:20240131T205032Z:cd7c5450-a2b1-4cf5-ae38-5d66e02e3c73" ], + "Date": [ "Wed, 31 Jan 2024 20:50:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "312" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-1c0f34c3-a77f-48f8-92ed-4bc40297b575/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-01-31T20:50:15Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Tests.ps1 index b0d8de3affe4..639460aab4e5 100644 --- a/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Get-AzSupportFilesNoSubscription.Tests.ps1 @@ -15,16 +15,20 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzSupportFilesNoSubscript } Describe 'Get-AzSupportFilesNoSubscription' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + $files = Get-AzSupportFilesNoSubscription -WorkspaceName $env.FileWorkspaceNameNoSubscription + $files | Should -Not -BeNullOrEmpty + $files.Count | Should -BeGreaterOrEqual 1 } It 'GetViaIdentityFileWorkspace' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $file = Get-AzSupportFile -Name "test2.txt" -WorkspaceName $env.FileWorkspaceNameSubscription + $file | Should -Not -BeNullOrEmpty + $file.Name | Should -Be "test2.txt" } It 'GetViaIdentity' -skip { diff --git a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 index 14c18a6585eb..1c7284f58000 100644 --- a/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 +++ b/src/Support/Support.Autorest/test/New-AzSupportFileAndUpload.Tests.ps1 @@ -16,10 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUpload')) Describe 'New-AzSupportFileAndUpload' { It 'CreateExpanded' { - Write-Host "current path: " + $currentPath - Write-Host "ps script root: " + $PSScriptRoot $testFilePath = Join-Path $PSScriptRoot files test.txt - Write-Host "test file path: " + $testFilePath $file = New-AzSupportFileAndUpload -WorkspaceName $env.FileWorkspaceNameSubscription -FilePath $testFilePath $file.Name | Should -Be "test.txt" } diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 index d4d844c099cf..23b7ef6b16d4 100644 --- a/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketNameAvailability.Tests.ps1 @@ -15,9 +15,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzSupportTicketNameAvail } Describe 'Test-AzSupportTicketNameAvailability' { - It 'CheckExpanded' { - $result = Test-AzSupportTicketNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets"-SubscriptionId $env.SubscriptionId - $result.NameAvailable | Should -Be $true + It 'CheckExpandedSupportTicket' { + $supportTicketResult = Test-AzSupportTicketNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets"-SubscriptionId $env.SubscriptionId + $supportTicketResult.NameAvailable | Should -Be $true + } + + It 'CheckExpandedFileWorkspace' { + $fileWorkspaceResult = Test-AzSupportTicketNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/fileWorkspaces" -SubscriptionId $env.SubscriptionId + $fileWorkspaceResult.NameAvailable | Should -Be $true } It 'Check' -skip { diff --git a/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 index 9fe486df7604..1840501c8f89 100644 --- a/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 +++ b/src/Support/Support.Autorest/test/Test-AzSupportTicketsNoSubscriptionNameAvailability.Tests.ps1 @@ -15,9 +15,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzSupportTicketsNoSubscr } Describe 'Test-AzSupportTicketsNoSubscriptionNameAvailability' { - It 'CheckExpanded' { - $result = Test-AzSupportTicketsNoSubscriptionNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets" - $result.NameAvailable | Should -Be $true + It 'CheckExpandedSupportTicket' { + $supportTicketResult = Test-AzSupportTicketsNoSubscriptionNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/supportTickets" + $supportTicketResult.NameAvailable | Should -Be $true + } + + It 'CheckExpandedFileWorkspace' { + $fileWorkspaceResult = Test-AzSupportTicketsNoSubscriptionNameAvailability -Name "test-ps-$(New-Guid)" -Type "Microsoft.Support/fileWorkspaces" + $fileWorkspaceResult.NameAvailable | Should -Be $true } It 'Check' -skip { diff --git a/src/Support/Support.Autorest/test/env.json b/src/Support/Support.Autorest/test/env.json index f4be1e925a14..c70f4f91f415 100644 --- a/src/Support/Support.Autorest/test/env.json +++ b/src/Support/Support.Autorest/test/env.json @@ -1,8 +1,8 @@ { - "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", - "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896", "SubscriptionId": "4df09db9-7a7e-450b-8f88-00fb97c277bd", + "FileWorkspaceNameSubscription": "test-ps-1c0f34c3-a77f-48f8-92ed-4bc40297b575", + "FileWorkspaceNameNoSubscription": "test-ps-c3365113-f08e-4317-936c-3d948a9dc191", + "Tenant": "d71d46f6-114f-4d2a-81c9-8fc86ba8801c", "BillingServiceId": "517f2da6-78fd-0498-4e22-ad26996b1dfc", - "FileWorkspaceNameNoSubscription": "test-ps-afd5e347-4c0f-444d-9119-8a0dcb829c96", - "FileWorkspaceNameSubscription": "test-ps-56fe95cf-25df-4367-85d7-693e55a5f486" + "BillingProblemClassificationId": "d0f16bf7-e011-3f3b-1c26-3147f84e0896" } diff --git a/src/Support/Support.Autorest/test/files/test2.txt b/src/Support/Support.Autorest/test/files/test2.txt new file mode 100644 index 000000000000..30d74d258442 --- /dev/null +++ b/src/Support/Support.Autorest/test/files/test2.txt @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/src/Support/Support.Autorest/test/utils.ps1 b/src/Support/Support.Autorest/test/utils.ps1 index 946a5150669b..413e85fecd45 100644 --- a/src/Support/Support.Autorest/test/utils.ps1 +++ b/src/Support/Support.Autorest/test/utils.ps1 @@ -52,7 +52,11 @@ function setupEnv() { New-AzSupportFileWorkspace -Name $env.FileWorkspaceNameSubscription New-AzSupportFileWorkspacesNoSubscription -Name $env.FileWorkspaceNameNoSubscription - + + $testFilePath = Join-Path $PSScriptRoot files test2.txt + New-AzSupportFileAndUpload -WorkspaceName $env.FileWorkspaceNameSubscription -FilePath $testFilePath + New-AzSupportFileAndUploadNoSubscription -WorkspaceName $env.FileWorkspaceNameNoSubscription -FilePath $testFilePath + $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' From f4e7b8e512b9fb8d4f2a2ae3acd5979f9645b94a Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Thu, 1 Feb 2024 16:08:56 -0500 Subject: [PATCH 26/27] erroraction stop --- .../Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 | 5 ++--- .../custom/New-AzSupportFileAndUploadNoSubscription.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index c2f838b8f3b8..5b008a9acb5d 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -103,7 +103,6 @@ param( ) process { - $ErrorActionPreference = 'Stop' #Write-Output "file path: " + $FilePath $FileName = Split-Path $FilePath -Leaf Write-Output "file name: " $FileName @@ -132,7 +131,7 @@ process { } # Write-Output "Number of chunks: " $NumberOfChunks $PSBoundParameters.Remove('FilePath') | Out-Null - New-AzSupportFile -SubscriptionId $SubscriptionId -Name $FileName -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters + New-AzSupportFile -ErrorAction Stop -Name $FileName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters Write-Output "successfully created file" $chunkIndex = 0 @@ -147,7 +146,7 @@ process { # Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFile -SubscriptionId $SubscriptionId -FileName $FileName -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters + Invoke-AzSupportUploadFile -ErrorAction Stop -FileName $FileName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 index 3504af221f87..d8539559a33b 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -123,7 +123,7 @@ process { Write-Output "Number of chunks: " $NumberOfChunks $PSBoundParameters.Remove('FilePath') | Out-Null - New-AzSupportFilesNoSubscription -Name $FileName -WorkspaceName $WorkspaceName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters + New-AzSupportFilesNoSubscription -ErrorAction Stop -Name $FileName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters Write-Output "successfully created file" $chunkIndex = 0 @@ -138,7 +138,7 @@ process { Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFilesNoSubscription -FileName $FileName -FileWorkspaceName $WorkspaceName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters + Invoke-AzSupportUploadFilesNoSubscription -ErrorAction Stop -FileName $FileName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1 $endIndex = $FileSize - 1 From 60b734104eb4df3167be54f003fffc4197c95fcf Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Thu, 1 Feb 2024 17:36:50 -0500 Subject: [PATCH 27/27] remove unnecessary comments and print statements --- src/Support/Support.Autorest/README.md | 3 --- .../custom/New-AzSupportFileAndUpload.ps1 | 22 +++++-------------- ...w-AzSupportFileAndUploadNoSubscription.ps1 | 18 +++++---------- 3 files changed, 11 insertions(+), 32 deletions(-) diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index 2ae10d77f563..0da9485bb2ad 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -35,13 +35,10 @@ commit: 99b27b136352e2f16c3f868857fa33157ace895f require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md -# - $(repo)/specification/support/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)/relative-path-to-your-local-readme.md input-file: - $(repo)/specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/support.json -# try-require: -# - $(repo)/specification/support/resource-manager/readme.powershell.md # For new RP, the version is 0.1.0 module-version: 0.1.0 diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 index 5b008a9acb5d..e85797c82678 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1 @@ -103,49 +103,39 @@ param( ) process { - #Write-Output "file path: " + $FilePath $FileName = Split-Path $FilePath -Leaf - Write-Output "file name: " $FileName $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB - Write-Output "about to get file content" $FileContentBytes = Get-Content -Path $FilePath -Raw - Write-Output "got file content" + if($FileContentBytes -eq $Null){ throw "File cannot be empty" } + $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length - Write-Output "file size: " $FileSize + if($FileSize -gt $MaxFileSize){ throw "File size is greater than the maximum file size of 5 MB" } + $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} - # Write-Output "Length of byte array: " $FileSize - # Write-Output "Max chunk size: " $MaxChunkSize - # Write-Output "Chunk Size: " $ChunkSize $NumberOfChunks = [int][Math]::Floor($FileSize / $ChunkSize); + If($FileSize % $ChunkSize -gt 0) { $NumberOfChunks++ } - # Write-Output "Number of chunks: " $NumberOfChunks + $PSBoundParameters.Remove('FilePath') | Out-Null New-AzSupportFile -ErrorAction Stop -Name $FileName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters - Write-Output "successfully created file" $chunkIndex = 0 $startIndex = 0 $endIndex = $ChunkSize - 1 - # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) - while($chunkIndex -lt $NumberOfChunks){ - # Write-Output "chunk index: " + $chunkIndex - # Write-Output "start index: " + $startIndex - # Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFile -ErrorAction Stop -FileName $FileName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1 diff --git a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 index d8539559a33b..f42b5aab7f77 100644 --- a/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 +++ b/src/Support/Support.Autorest/custom/New-AzSupportFileAndUploadNoSubscription.ps1 @@ -97,47 +97,39 @@ param( process { - Write-Output "file path: " $FilePath $FileName = Split-Path $FilePath -Leaf - Write-Output "file name: " + $FileName $MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB $MaxFileSize = 5 * 1024 * 1024 #5 MB $FileContentBytes = Get-Content -Path $FilePath -Raw + if($FileContentBytes -eq $Null){ throw "File cannot be empty" } + $FileContentByteArray = [System.Text.Encoding]::UTF8.GetBytes($FileContentBytes) $FileSize = $FileContentByteArray.Length + if($FileSize -gt $MaxFileSize){ throw "File size is greater than the maximum file size of 5 MB" } + $ChunkSize = If($FileSize -gt $MaxChunkSize) {$MaxChunkSize} Else {$FileSize} - Write-Output "Length of byte array: " $FileSize - Write-Output "Max chunk size: " $MaxChunkSize - Write-Output "Chunk Size: " $ChunkSize $NumberOfChunks = [int][Math]::Floor($FileSize / $ChunkSize); + If($FileSize % $ChunkSize -gt 0) { $NumberOfChunks++ } - Write-Output "Number of chunks: " $NumberOfChunks $PSBoundParameters.Remove('FilePath') | Out-Null New-AzSupportFilesNoSubscription -ErrorAction Stop -Name $FileName -FileSize $FileSize -ChunkSize $ChunkSize -NumberOfChunk $NumberOfChunks @PSBoundParameters - Write-Output "successfully created file" $chunkIndex = 0 $startIndex = 0 $endIndex = $ChunkSize - 1 - # $FileContent = [convert]::ToBase64String((Get-Content -path $FilePath -Encoding byte)) - while($chunkIndex -lt $NumberOfChunks){ - Write-Output "chunk index: " + $chunkIndex - Write-Output "start index: " + $startIndex - Write-Output "end index: " + $endIndex $FileContent = [convert]::ToBase64String($FileContentByteArray[$startIndex..$endIndex]) - Invoke-AzSupportUploadFilesNoSubscription -ErrorAction Stop -FileName $FileName -ChunkIndex $chunkIndex -Content $FileContent @PSBoundParameters $chunkIndex++ $startIndex = $endIndex + 1