你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

在 Azure CLI 中创建 Azure 支持票证

利用 Azure CLI,可创建和管理 Azure 支持票证。

  • 开具技术、计费、订阅管理或订阅和服务限制(配额)支持票证。
  • 获取支持票证的列表以及有关每个票证的详细信息。 按状态或创建日期缩小搜索支持票证的范围。
  • 更新支持票证的严重性、票证状态和联系信息。
  • 向支持票证添加新的通信或获取支持票证的所有通信列表。 按创建日期或通信类型缩小搜索通信列表的范围。

若要创建支持请求,你必须是所有者参与者,或在订阅级别被分配到支持请求参与者角色。 若要在没有订阅的情况下创建支持请求(例如 Microsoft Entr 场景),则你必须是管理员

先决条件

创建支持票证

  1. 若要获取服务列表,请使用 az support services list 命令:

    az support services list --output table
    

    对于此示例,找到“运行 Windows 的虚拟机”的值,即“6f16735c-b0ae-b275-ad3a-03479cfa1396” 。

  2. 若要获取描述你的问题的问题类型和问题子类型,请运行 az support services problem-classifications list 命令:

    az support services problem-classifications list --service-name 6f16735c-b0ae-b275-ad3a-03479cfa1396 --output table
    

    对于此示例,找到“无法连接到我的 VM/我的公共 IP 出现问题”。 该类型的值为“e5c307e3-50ff-5dc9-c8ae-7d35051f88c9”。

  3. 使用 az support tickets create 命令创建票证:

    az support tickets create --ticket-name "VM012" --title "Issue with public IP" \
       --description "This ticket involves a public IP address of a VM." \
       --problem-classification e5c307e3-50ff-5dc9-c8ae-7d35051f88c9 \
       --severity minimal --contact-first-name Kenneth --contact-last-name Liew \
       --contact-method email --contact-email Kenneth.Liew@Contoso.com \
       --contact-country US --contact-language English --contact-timezone "Pacific Standard Time"
    

支持工程师将使用你指定的方法与你联系。 要了解初始响应时间,请参阅支持范围和响应速度

管理支持票证

借助 Azure CLI,你可以使用各种命令进行支持票证管理。 若要查看当前订阅的 Azure 支持票证,请运行 az support tickets list 命令:

az support tickets list

若要查看另一个订阅中的 Azure 支持票证,请运行 az account set 命令以更改当前订阅,然后运行该命令。

你也可以使用 az support tickets update 命令更新票证:

az support tickets update --ticket-name VM012 --severity moderate

就你的票证进行通信

不能删除使用 Azure CLI 创建的支持票证。 而应发送一条消息以关闭票证。 如果需要重新打开已关闭的支持请求,请创建一条新消息,该消息将自动重新打开该请求。

若要就你的票证进行通信,请运行 az support tickets communications create 命令:

az support tickets communications create --ticket-name VM012 \
    --communication-name "VM Delay" \
    --communication-body "Delaying VM fixes due to scheduling on our end." \
    --communication-subject "Delaying VM fixes due to scheduling on our end."

若要查看票证的所有通信,请使用 az support tickets communications list 命令:

az support tickets communications list --ticket-name VM012

此命令提供了一个 --filters 参数来缩小响应范围。

az support tickets communications list --ticket-name VM012 \
    --filters "communicationType eq 'Web'"

后续步骤