Skip to content

Commit

Permalink
Documentation update for Az.Support module (#12239)
Browse files Browse the repository at this point in the history
* doc update adding example

* doc update adding example

* reverting version changes

Co-authored-by: Bhavin Shah <[email protected]>
  • Loading branch information
shahbj79 and Bhavin Shah authored Jun 24, 2020
1 parent c9e93a7 commit 030b6a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Support/Support/help/Get-AzSupportTicket.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Name Title SupportTicketId Severity ServiceDisplayName
test1 test title1 150010521000317 Minimal Virtual Machine running Linux Closed 2/5/2020 1:33:53 AM
```

### Example 3: Get first 2 support tickets filtered by status
### Example 4: Get first 2 support tickets filtered by status
```powershell
PS C:\> Get-AzSupportTicket -Filter "Status eq 'Closed'" -First 2
Expand All @@ -81,7 +81,7 @@ test1 test title1 150010521000317 Minimal Virtual Machine runn
test2 test title2 150010521000318 Minimal Billing Closed 2/5/2020 1:33:53 AM
```

### Example 3: Get all support tickets that are in Open state and created after Dec 20th, 2019
### Example 5: Get all support tickets that are in Open state and created after Dec 20th, 2019
```powershell
PS C:\> Get-AzSupportTicket -Filter "Status eq 'Open' and CreatedDate gt 2019-12-20"
Expand Down
15 changes: 12 additions & 3 deletions src/Support/Support/help/New-AzSupportTicket.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,16 @@ Name Title SupportTicketId Severity ServiceDisplayName St
test1 Test 150010521000317 Minimal Service and subscription limits (quotas) Open 2/5/2020 1:33:53 AM
```

### Example 15: Create a support ticket by specifying individual customer contact parameters instead of CustomerContactDetail object.
### Example 15: Create a quota support ticket to increase quota for Azure SQL Managed Instance. Use Get-AzSupportService and Get-AzSupportProblemClassification to retrieve correct GUIDs for Quota SQL Managed Instance service problem classification.
```powershell
PS C:\> New-AzSupportTicket -Name "test1" -Title "Test" -Description "Test" -Severity "minimal" -ProblemClassificationId "/providers/Microsoft.Support/services/{quota_service_guid}/problemClassifications/{sql_managed_instance_problemClassification_guid}" -QuotaTicketDetail @{QuotaChangeRequestVersion = "1.0" ; QuotaChangeRequestSubType = "SQLMI" ; QuotaChangeRequests = (@{Region = "westus"; Payload = "{`"NewLimit`":200,`"Type`":`"vCore`" }"}, @{Region = "westus"; Payload = "{`"NewLimit`":200,`"Type`":`"Subnet`" }"})} -CustomerContactDetail @{FirstName = "first" ; LastName = "last" ; PreferredTimeZone = "pacific standard time" ; PreferredSupportLanguage = "en-us" ; Country = "USA" ; PreferredContactMethod = "Email" ; PrimaryEmailAddress = "[email protected]"}
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 Test 150010521000317 Minimal Service and subscription limits (quotas) Open 2/5/2020 1:33:53 AM
```

### Example 16: Create a support ticket by specifying individual customer contact parameters instead of CustomerContactDetail object.
```powershell
PS C:\> New-AzSupportTicket -Name "test1" -Title "Test" -Description "Test" -Severity "minimal" -ProblemClassificationId "/providers/Microsoft.Support/services/{billing_service_guid}/problemClassifications/{problemClassification_guid}" -CustomerFirstName "first" -CustomerLastName "last" -CustomerPreferredTimeZone "pacific standard time" -CustomerPreferredSupportLanguage "en-us" -CustomerCountry = "USA" -PreferredContactMethod "Email" -CustomerPrimaryEmailAddress "[email protected]"
Expand All @@ -250,7 +259,7 @@ Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
test1 Test 150010521000317 Minimal Billing Open 2/5/2020 1:33:53 AM
```

### Example 16: Create a support ticket with request for 24 x 7 response from Azure.
### Example 17: Create a support ticket with request for 24 x 7 response from Azure.
```powershell
PS C:\> New-AzSupportTicket -Name "test1" -Title "Test" -Description "Test" -Severity "critical" -ProblemClassificationId "/providers/Microsoft.Support/services/{billing_service_guid}/problemClassifications/{problemClassification_guid}" -CustomerFirstName "first" -CustomerLastName "last" -CustomerPreferredTimeZone "pacific standard time" -CustomerPreferredSupportLanguage "en-us" -CustomerCountry = "USA" -PreferredContactMethod "Email" -CustomerPrimaryEmailAddress "[email protected]" -Require24X7Response
Expand All @@ -259,7 +268,7 @@ Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
test1 Test 150010521000317 Critical Billing Open 2/5/2020 1:33:53 AM
```

### Example 17: Create a support ticket on behalf of your customer if you are a Cloud Solution Provider (CSP). CSP should first login into their tenant, and then login into customer's tenant as shown in the example below. They must then use -CSPHomeTenantId parameter to specify their home tenant id at the time of creating a support ticket.
### Example 18: Create a support ticket on behalf of your customer if you are a Cloud Solution Provider (CSP). CSP should first login into their tenant, and then login into customer's tenant as shown in the example below. They must then use -CSPHomeTenantId parameter to specify their home tenant id at the time of creating a support ticket.
```powershell
PS C:\> Login-AzAccount
Expand Down

0 comments on commit 030b6a2

Please sign in to comment.