你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Remove-AzureSchedulerJobCollection
删除计划程序作业集合。
注意
本文档中引用的 cmdlet 用于管理使用 Azure Service Manager (ASM) API 的旧式 Azure 资源。 创建新资源时,建议不要使用旧的 PowerShell 模块,因为计划将停用 ASM。 有关详细信息,请参阅 Azure Service Manager 停用。
Az PowerShell 模块是建议用于管理 PowerShell 的 Azure 资源管理器 (ARM) 资源的 PowerShell 模块。
语法
Remove-AzureSchedulerJobCollection
[-Force]
[-Location <String>]
-JobCollectionName <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
说明
本主题介绍 Microsoft Azure PowerShell 模块的 0.8.10 版本中的 cmdlet。
若要获取正在使用的模块版本,请在 Azure PowerShell 控制台中键入 (Get-Module -Name Azure).Version
。
Remove-AzureSchedulerJobCollection cmdlet 删除计划程序作业集合和该集合下的任何作业。
示例
示例 1:删除位置的作业集合
PS C:\> Remove-AzureSchedulerJobCollection -Location "North Central US" -JobCollectionName "JobCollection01"
此命令删除位于美国中北部位置的名为 JobCollection01 的计划程序作业集合。 该命令还会删除 JobCollection01 下的作业。
示例 2:删除作业位置
PS C:\> Remove-AzureSchedulerJobCollection -JobCollectionName "JobCollection02"
此命令删除名为 JobCollection02 的计划程序作业集合。 该命令还会删除 JobCollection02 下的作业。
参数
-Force
指示此 cmdlet 在不提示确认的情况下删除计划程序作业集合。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-JobCollectionName
指定要删除的计划程序作业集合的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Location
指定托管云服务的位置的名称。 有效值为:
- 亚洲任意地区
- 欧洲任意地区
- 美国任意地区
- 东亚
- 美国东部
- 美国中北部
- 北欧
- 美国中南部
- 东南亚
- 西欧
- 美国西部
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Profile
指定此 cmdlet 从中读取的 Azure 配置文件。 如果未指定配置文件,此 cmdlet 将从本地默认配置文件中读取。
类型: | AzureSMProfile |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |