Skip to content

Commit 487bef6

Browse files
committed
add back workspace commands
1 parent 276498c commit 487bef6

File tree

7 files changed

+322
-3
lines changed

7 files changed

+322
-3
lines changed

src/Support/Support.Autorest/Az.Support.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Support.private.dll'
1313
FormatsToProcess = './Az.Support.format.ps1xml'
14-
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'
14+
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'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support'

src/Support/Support.Autorest/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,19 @@ directive:
8383
- NumberOfChunks
8484
- where:
8585
verb: New
86-
subject: File|FilesNoSubscription
86+
subject: File
87+
hide: true
88+
- where:
89+
verb: New
90+
subject: FilesNoSubscription
91+
hide: true
92+
- where:
93+
verb: Invoke
94+
subject: UploadFile
8795
hide: true
8896
- where:
8997
verb: Invoke
90-
subject: UploadFile|UploadFilesNoSubscription
98+
subject: UploadFilesNoSubscription
9199
hide: true
92100
# Following are common directives which are normally required in all the RPs
93101
# 1. Remove the unexpanded parameter set

src/Support/Support.Autorest/docs/Az.Support.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Creates and uploads a new file under a workspace for the specified subscription.
7474
### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md)
7575
Creates and uploads a new file under a workspace for the specified subscription.
7676

77+
### [New-AzSupportFileWorkspace](New-AzSupportFileWorkspace.md)
78+
Creates a new file workspace for the specified subscription.
79+
80+
### [New-AzSupportFileWorkspacesNoSubscription](New-AzSupportFileWorkspacesNoSubscription.md)
81+
Creates a new file workspace.
82+
7783
### [New-AzSupportTicket](New-AzSupportTicket.md)
7884
Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription.
7985
Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.\<br/\>\<br/\>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.\<br/\>\<br/\>Adding attachments is not currently supported via the API.
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
external help file:
3+
Module Name: Az.Support
4+
online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspace
5+
schema: 2.0.0
6+
---
7+
8+
# New-AzSupportFileWorkspace
9+
10+
## SYNOPSIS
11+
Creates a new file workspace for the specified subscription.
12+
13+
## SYNTAX
14+
15+
```
16+
New-AzSupportFileWorkspace -Name <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm]
17+
[-WhatIf] [<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
Creates a new file workspace for the specified subscription.
22+
23+
## EXAMPLES
24+
25+
### Example 1: {{ Add title here }}
26+
```powershell
27+
{{ Add code here }}
28+
```
29+
30+
```output
31+
{{ Add output here (remove the output block if the example doesn't have an output) }}
32+
```
33+
34+
{{ Add description here }}
35+
36+
### Example 2: {{ Add title here }}
37+
```powershell
38+
{{ Add code here }}
39+
```
40+
41+
```output
42+
{{ Add output here (remove the output block if the example doesn't have an output) }}
43+
```
44+
45+
{{ Add description here }}
46+
47+
## PARAMETERS
48+
49+
### -DefaultProfile
50+
The DefaultProfile parameter is not functional.
51+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
52+
53+
```yaml
54+
Type: System.Management.Automation.PSObject
55+
Parameter Sets: (All)
56+
Aliases: AzureRMContext, AzureCredential
57+
58+
Required: False
59+
Position: Named
60+
Default value: None
61+
Accept pipeline input: False
62+
Accept wildcard characters: False
63+
```
64+
65+
### -Name
66+
File workspace name.
67+
68+
```yaml
69+
Type: System.String
70+
Parameter Sets: (All)
71+
Aliases: FileWorkspaceName
72+
73+
Required: True
74+
Position: Named
75+
Default value: None
76+
Accept pipeline input: False
77+
Accept wildcard characters: False
78+
```
79+
80+
### -SubscriptionId
81+
Azure subscription Id.
82+
83+
```yaml
84+
Type: System.String
85+
Parameter Sets: (All)
86+
Aliases:
87+
88+
Required: False
89+
Position: Named
90+
Default value: (Get-AzContext).Subscription.Id
91+
Accept pipeline input: False
92+
Accept wildcard characters: False
93+
```
94+
95+
### -Confirm
96+
Prompts you for confirmation before running the cmdlet.
97+
98+
```yaml
99+
Type: System.Management.Automation.SwitchParameter
100+
Parameter Sets: (All)
101+
Aliases: cf
102+
103+
Required: False
104+
Position: Named
105+
Default value: None
106+
Accept pipeline input: False
107+
Accept wildcard characters: False
108+
```
109+
110+
### -WhatIf
111+
Shows what would happen if the cmdlet runs.
112+
The cmdlet is not run.
113+
114+
```yaml
115+
Type: System.Management.Automation.SwitchParameter
116+
Parameter Sets: (All)
117+
Aliases: wi
118+
119+
Required: False
120+
Position: Named
121+
Default value: None
122+
Accept pipeline input: False
123+
Accept wildcard characters: False
124+
```
125+
126+
### CommonParameters
127+
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).
128+
129+
## INPUTS
130+
131+
## OUTPUTS
132+
133+
### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails
134+
135+
## NOTES
136+
137+
## RELATED LINKS
138+
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
---
2+
external help file:
3+
Module Name: Az.Support
4+
online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfileworkspacesnosubscription
5+
schema: 2.0.0
6+
---
7+
8+
# New-AzSupportFileWorkspacesNoSubscription
9+
10+
## SYNOPSIS
11+
Creates a new file workspace.
12+
13+
## SYNTAX
14+
15+
```
16+
New-AzSupportFileWorkspacesNoSubscription -FileWorkspaceName <String> [-DefaultProfile <PSObject>] [-Confirm]
17+
[-WhatIf] [<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
Creates a new file workspace.
22+
23+
## EXAMPLES
24+
25+
### Example 1: {{ Add title here }}
26+
```powershell
27+
{{ Add code here }}
28+
```
29+
30+
```output
31+
{{ Add output here (remove the output block if the example doesn't have an output) }}
32+
```
33+
34+
{{ Add description here }}
35+
36+
### Example 2: {{ Add title here }}
37+
```powershell
38+
{{ Add code here }}
39+
```
40+
41+
```output
42+
{{ Add output here (remove the output block if the example doesn't have an output) }}
43+
```
44+
45+
{{ Add description here }}
46+
47+
## PARAMETERS
48+
49+
### -DefaultProfile
50+
The DefaultProfile parameter is not functional.
51+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
52+
53+
```yaml
54+
Type: System.Management.Automation.PSObject
55+
Parameter Sets: (All)
56+
Aliases: AzureRMContext, AzureCredential
57+
58+
Required: False
59+
Position: Named
60+
Default value: None
61+
Accept pipeline input: False
62+
Accept wildcard characters: False
63+
```
64+
65+
### -FileWorkspaceName
66+
File workspace name.
67+
68+
```yaml
69+
Type: System.String
70+
Parameter Sets: (All)
71+
Aliases:
72+
73+
Required: True
74+
Position: Named
75+
Default value: None
76+
Accept pipeline input: False
77+
Accept wildcard characters: False
78+
```
79+
80+
### -Confirm
81+
Prompts you for confirmation before running the cmdlet.
82+
83+
```yaml
84+
Type: System.Management.Automation.SwitchParameter
85+
Parameter Sets: (All)
86+
Aliases: cf
87+
88+
Required: False
89+
Position: Named
90+
Default value: None
91+
Accept pipeline input: False
92+
Accept wildcard characters: False
93+
```
94+
95+
### -WhatIf
96+
Shows what would happen if the cmdlet runs.
97+
The cmdlet is not run.
98+
99+
```yaml
100+
Type: System.Management.Automation.SwitchParameter
101+
Parameter Sets: (All)
102+
Aliases: wi
103+
104+
Required: False
105+
Position: Named
106+
Default value: None
107+
Accept pipeline input: False
108+
Accept wildcard characters: False
109+
```
110+
111+
### CommonParameters
112+
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).
113+
114+
## INPUTS
115+
116+
## OUTPUTS
117+
118+
### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileWorkspaceDetails
119+
120+
## NOTES
121+
122+
## RELATED LINKS
123+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: {{ Add title here }}
2+
```powershell
3+
{{ Add code here }}
4+
```
5+
6+
```output
7+
{{ Add output here (remove the output block if the example doesn't have an output) }}
8+
```
9+
10+
{{ Add description here }}
11+
12+
### Example 2: {{ Add title here }}
13+
```powershell
14+
{{ Add code here }}
15+
```
16+
17+
```output
18+
{{ Add output here (remove the output block if the example doesn't have an output) }}
19+
```
20+
21+
{{ Add description here }}
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: {{ Add title here }}
2+
```powershell
3+
{{ Add code here }}
4+
```
5+
6+
```output
7+
{{ Add output here (remove the output block if the example doesn't have an output) }}
8+
```
9+
10+
{{ Add description here }}
11+
12+
### Example 2: {{ Add title here }}
13+
```powershell
14+
{{ Add code here }}
15+
```
16+
17+
```output
18+
{{ Add output here (remove the output block if the example doesn't have an output) }}
19+
```
20+
21+
{{ Add description here }}
22+

0 commit comments

Comments
 (0)