Skip to content

Commit cf8e4ac

Browse files
committed
init add powershell cmdlet
1 parent 115c0ea commit cf8e4ac

File tree

117 files changed

+10294
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+10294
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
bin
2+
obj
3+
.vs
4+
generated
5+
internal
6+
exports
7+
tools
8+
custom/*.psm1
9+
custom/autogen-model-cmdlets
10+
test/*-TestResults.xml
11+
/*.ps1
12+
/*.ps1xml
13+
/*.psm1
14+
/*.snk
15+
/*.csproj
16+
/*.nuspec
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@{
2+
GUID = 'ca38d4b0-fe38-4f55-b9e1-66df3d985f20'
3+
RootModule = './Az.Support.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Support cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Support.private.dll'
13+
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', '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'
15+
PrivateData = @{
16+
PSData = @{
17+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support'
18+
LicenseUri = 'https://aka.ms/azps-license'
19+
ProjectUri = 'https://github.com/Azure/azure-powershell'
20+
ReleaseNotes = ''
21+
}
22+
}
23+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<!-- region Generated -->
2+
# Az.Support
3+
This directory contains the PowerShell module for the Support service.
4+
5+
---
6+
## Status
7+
[![Az.Support](https://img.shields.io/powershellgallery/v/Az.Support.svg?style=flat-square&label=Az.Support "Az.Support")](https://www.powershellgallery.com/packages/Az.Support/)
8+
9+
## Info
10+
- Modifiable: yes
11+
- Generated: all
12+
- Committed: yes
13+
- Packaged: yes
14+
15+
---
16+
## Detail
17+
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
18+
19+
## Module Requirements
20+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
21+
22+
## Authentication
23+
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
24+
25+
## Development
26+
For information on how to develop for `Az.Support`, see [how-to.md](how-to.md).
27+
<!-- endregion -->
28+
29+
### AutoRest Configuration
30+
> see https://aka.ms/autorest
31+
32+
```yaml
33+
# pin the swagger version by using the commit id instead of branch name
34+
commit: 99b27b136352e2f16c3f868857fa33157ace895f
35+
require:
36+
# readme.azure.noprofile.md is the common configuration file
37+
- $(this-folder)/../../readme.azure.noprofile.md
38+
# - $(repo)/specification/support/resource-manager/readme.md
39+
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
40+
# - (this-folder)/relative-path-to-your-local-readme.md
41+
input-file:
42+
- $(repo)/specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/support.json
43+
# try-require:
44+
# - $(repo)/specification/support/resource-manager/readme.powershell.md
45+
46+
# For new RP, the version is 0.1.0
47+
module-version: 0.1.0
48+
# Normally, title is the service name
49+
title: Support
50+
subject-prefix: $(service-name)
51+
52+
# The next three configurations are exclusive to v3, and in v4, they are activated by default. If you are still using v3, please uncomment them.
53+
# identity-correction-for-post: true
54+
# resourcegroup-append: true
55+
# nested-object-to-string: true
56+
57+
directive:
58+
- where:
59+
model-name: ProblemClassification
60+
set:
61+
format-table:
62+
properties:
63+
# - Id
64+
- DisplayName
65+
- Name
66+
- SecondaryConsentEnabled # Do we need this?
67+
# - Type
68+
- where:
69+
model-name: Service
70+
set:
71+
format-table:
72+
properties:
73+
# - Id
74+
- DisplayName
75+
- Name
76+
- ResourceType # Do we need this?
77+
# - Type
78+
# Following are common directives which are normally required in all the RPs
79+
# 1. Remove the unexpanded parameter set
80+
# 2. For New-* cmdlets, ViaIdentity is not required
81+
# Following two directives are v4 specific
82+
- where:
83+
variant: ^(Create|Update)(?!.*?Expanded)
84+
remove: true
85+
- where:
86+
variant: ^CreateViaIdentity.*$
87+
remove: true
88+
# Follow directive is v3 specific. If you are using v3, uncomment following directive and comments out two directives above
89+
#- where:
90+
# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
91+
# remove: true
92+
93+
# Remove the set-* cmdlet
94+
# - where:
95+
# verb: Set
96+
# remove: true
97+
```
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"resourceType": "fileWorkspaces/files",
3+
"apiVersion": "2022-09-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.support"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzSupportFilesNoSubscription",
10+
"description": "Returns details of a specific file in a work space.",
11+
"path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfilesnosubscription"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-FileName <String>",
20+
"-FileWorkspaceName <String>"
21+
]
22+
}
23+
]
24+
},
25+
"examples": [
26+
{
27+
"description": "Returns details of a specific file in a work space.",
28+
"parameters": [
29+
{
30+
"name": "-FileName",
31+
"value": "[Path.fileName]"
32+
},
33+
{
34+
"name": "-FileWorkspaceName",
35+
"value": "[Path.fileWorkspaceName]"
36+
}
37+
]
38+
}
39+
]
40+
},
41+
{
42+
"name": "Get-AzSupportFile",
43+
"description": "Returns details of a specific file in a work space.",
44+
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
45+
"help": {
46+
"learnMore": {
47+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfile"
48+
},
49+
"parameterSets": [
50+
{
51+
"parameters": [
52+
"-Name <String>",
53+
"[-SubscriptionId <String[]>]",
54+
"-WorkspaceName <String>"
55+
]
56+
}
57+
]
58+
},
59+
"examples": [
60+
{
61+
"description": "Returns details of a specific file in a work space.",
62+
"parameters": [
63+
{
64+
"name": "-Name",
65+
"value": "[Path.fileName]"
66+
},
67+
{
68+
"name": "-SubscriptionId",
69+
"value": "[Path.subscriptionId]"
70+
},
71+
{
72+
"name": "-WorkspaceName",
73+
"value": "[Path.fileWorkspaceName]"
74+
}
75+
]
76+
}
77+
]
78+
}
79+
]
80+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"resourceType": "fileWorkspaces",
3+
"apiVersion": "2022-09-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.support"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzSupportFileWorkspacesNoSubscription",
10+
"description": "Gets details for a specific file workspace.",
11+
"path": "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspacesnosubscription"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-FileWorkspaceName <String>"
20+
]
21+
}
22+
]
23+
},
24+
"examples": [
25+
{
26+
"description": "Gets details for a specific file workspace.",
27+
"parameters": [
28+
{
29+
"name": "-FileWorkspaceName",
30+
"value": "[Path.fileWorkspaceName]"
31+
}
32+
]
33+
}
34+
]
35+
},
36+
{
37+
"name": "Get-AzSupportFileWorkspace",
38+
"description": "Gets details for a specific file workspace in an Azure subscription.",
39+
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
40+
"help": {
41+
"learnMore": {
42+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportfileworkspace"
43+
},
44+
"parameterSets": [
45+
{
46+
"parameters": [
47+
"-Name <String>",
48+
"[-SubscriptionId <String[]>]"
49+
]
50+
}
51+
]
52+
},
53+
"examples": [
54+
{
55+
"description": "Gets details for a specific file workspace in an Azure subscription.",
56+
"parameters": [
57+
{
58+
"name": "-Name",
59+
"value": "[Path.fileWorkspaceName]"
60+
},
61+
{
62+
"name": "-SubscriptionId",
63+
"value": "[Path.subscriptionId]"
64+
}
65+
]
66+
}
67+
]
68+
}
69+
]
70+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"resourceType": "services/problemClassifications",
3+
"apiVersion": "2022-09-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.support"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzSupportProblemClassification",
10+
"description": "Get problem classification details for a specific Azure service.",
11+
"path": "/providers/Microsoft.Support/services/{serviceName}/problemClassifications/{problemClassificationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportproblemclassification"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ServiceName <String>"
21+
]
22+
}
23+
]
24+
},
25+
"examples": [
26+
{
27+
"description": "Get problem classification details for a specific Azure service.",
28+
"parameters": [
29+
{
30+
"name": "-Name",
31+
"value": "[Path.problemClassificationName]"
32+
},
33+
{
34+
"name": "-ServiceName",
35+
"value": "[Path.serviceName]"
36+
}
37+
]
38+
}
39+
]
40+
}
41+
]
42+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"resourceType": "services",
3+
"apiVersion": "2022-09-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.support"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzSupportService",
10+
"description": "Gets a specific Azure service for support ticket creation.",
11+
"path": "/providers/Microsoft.Support/services/{serviceName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.support/get-azsupportservice"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>"
20+
]
21+
}
22+
]
23+
},
24+
"examples": [
25+
{
26+
"description": "Gets a specific Azure service for support ticket creation.",
27+
"parameters": [
28+
{
29+
"name": "-Name",
30+
"value": "[Path.serviceName]"
31+
}
32+
]
33+
}
34+
]
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)