【问题标题】:Azure Elastic Job DeleteAzure 弹性作业删除
【发布时间】:2020-02-02 13:55:38
【问题描述】:

如何删除我的 Elastic Job Agent。 我确实在这方面做了工作,只要创造它。

【问题讨论】:

  • 如果我的回答对您有帮助,请接受(标记)为答案(点击答案旁边的复选标记,将其从灰色切换为已填充。)。这对其他社区成员可能是有益的。谢谢。
  • 您好,问题现在解决了吗?

标签: sql database azure elasticsearch jobs


【解决方案1】:

如果您通过 T-SQL 创建 Elastic Job Agent,请参考Delete a job and all its job history

删除作业及其所有作业历史记录

--Connect to the job database specified when creating the job agent

EXEC jobs.sp_delete_job @job_name='ResultsPoolsJob'

--Note: job history is automatically deleted if it is >45 days old

PowerShell请参考Remove-AzSqlElasticJobAgent:

Remove-AzSqlElasticJobAgent
      [-ResourceGroupName] <String>
      [-ServerName] <String>
      [-Name] <String>
      [-Force]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

您也可以从 Portal 上的 Elastic Job Agent Preview 删除它:

要了解更多详细信息,您可以阅读此博客:Introduction to Azure Elastic Database Jobs

希望这会有所帮助。

【讨论】:

    【解决方案2】:

    问题不是删除Elastic Pool Job,而是删除已经连接到他的作业的SQL DB,故障是 enter image description here

    【讨论】:

      猜你喜欢
      • 2014-04-16
      • 2020-02-03
      • 2020-02-06
      • 1970-01-01
      • 1970-01-01
      • 2020-11-15
      • 2021-11-23
      • 2019-03-16
      • 1970-01-01
      相关资源
      最近更新 更多