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

BatchApplicationPackageResource.Activate Method

Definition

Activates the specified application package. This should be done after the ApplicationPackage was created and uploaded. This needs to be done before an ApplicationPackage can be used on Pools or Tasks.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate
  • Operation Id: ApplicationPackage_Activate
  • Default Api Version: 2024-07-01
  • Resource: BatchApplicationPackageResource
public virtual Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource> Activate (Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Activate : Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource>
override this.Activate : Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource>
Public Overridable Function Activate (content As BatchApplicationPackageActivateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BatchApplicationPackageResource)

Parameters

content
BatchApplicationPackageActivateContent

The parameters for the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to