Update-AzSupportTicket
Updates support ticket.
Syntax
Update-AzSupportTicket
-Name <String>
[-Severity <Severity>]
[-Status <Status>]
[-CustomerFirstName <String>]
[-CustomerLastName <String>]
[-PreferredContactMethod <ContactMethod>]
[-CustomerPrimaryEmailAddress <String>]
[-AdditionalEmailAddress <String[]>]
[-CustomerPhoneNumber <String>]
[-CustomerPreferredTimeZone <String>]
[-CustomerCountry <String>]
[-CustomerPreferredSupportLanguage <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzSupportTicket
-Name <String>
[-Severity <Severity>]
[-Status <Status>]
-CustomerContactDetail <PSContactProfile>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzSupportTicket
-InputObject <PSSupportTicket>
[-Severity <Severity>]
[-Status <Status>]
[-CustomerFirstName <String>]
[-CustomerLastName <String>]
[-PreferredContactMethod <ContactMethod>]
[-CustomerPrimaryEmailAddress <String>]
[-AdditionalEmailAddress <String[]>]
[-CustomerPhoneNumber <String>]
[-CustomerPreferredTimeZone <String>]
[-CustomerCountry <String>]
[-CustomerPreferredSupportLanguage <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzSupportTicket
-InputObject <PSSupportTicket>
[-Severity <Severity>]
[-Status <Status>]
-CustomerContactDetail <PSContactProfile>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Use this cmdlet to update a support ticket's severity level, status or customer contact details. Note that updating a support ticket's severity level or status is not allowed when the ticket is assigned to a support engineer. If you wish to update the severity level or status after ticket assignment, contact the support engineer by sending a communication on the ticket.
Examples
Example 1: Update severity of support ticket.
Update-AzSupportTicket -Name "test1" -Severity "moderate"
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Open 2/5/2020 1:33:53 AM
Example 2: Update status of support ticket.
Update-AzSupportTicket -Name "test1" -Status "Closed"
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Closed 2/5/2020 1:33:53 AM
Example 3: Update contact details of support ticket by specify contact object.
$contactDetail = New-Object Microsoft.Azure.Commands.Support.Models.PSContactProfile
$contactDetail.FirstName = "first name updated"
$contactDetail.LastName = "last name updated"
Update-AzSupportTicket -Name "test1" -CustomerContactDetail $contactDetail
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Open 2/5/2020 1:33:53 AM
Example 4: Update severity of support ticket by piping support ticket object.
Get-AzSupportTicket -Name "test1" | Update-AzSupportTicket -Severity "moderate"
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Open 2/5/2020 1:33:53 AM
Example 5: Update contact details of support ticket by specifying individual contact parameters.
Update-AzSupportTicket -Name "test1" -CustomerFirstName "first name updated" -CustomerLastName "last name updated" -AdditionalEmailAddress @("user2@contoso.com")
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Open 2/5/2020 1:33:53 AM
Example 6: Update status of support ticket by piping support ticket object.
Get-AzSupportTicket -Name "test1" | Update-AzSupportTicket -Status "Closed"
Name Title SupportTicketId Severity ServiceDisplayName Status CreatedDate
---- ----- --------------- -------- ------------------ ------ -----------
test1 test title1 150010521000317 Moderate Virtual Machine running Linux Closed 2/5/2020 1:33:53 AM
Parameters
-AdditionalEmailAddress
Additional email addresses. Email addresses listed here will be copied on any correspondence about the support ticket.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerContactDetail
Update Contact details on SupportTicket.
Type: | PSContactProfile |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerCountry
Customer country. This must be a valid ISO Alpha-3 country code (ISO 3166).
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerFirstName
Customer first name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerLastName
Customer last name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerPhoneNumber
Customer phone number. This is required if preferred contact method is phone.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerPreferredSupportLanguage
Customer preferred support language. This must be a valid language-contry code for one of the supported languages listed here https://azure.microsoft.com/support/faq/.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerPreferredTimeZone
Customer preferred time zone. This must be a valid System.TimeZoneInfo.Id value.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomerPrimaryEmailAddress
Customer primary email address.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
SupportTicket resource object that this cmdlet updates.
Type: | PSSupportTicket |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Name of SupportTicket resource that this cmdlet updates.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PreferredContactMethod
Preferred contact method.
Type: | ContactMethod |
Accepted values: | Email, Phone |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Severity
Update Severity of SupportTicket.
Type: | Severity |
Accepted values: | Minimal, Moderate, Critical, HighestCriticalImpact |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Status
Update Status of SupportTicket.
Type: | Status |
Accepted values: | Open, Closed |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |