BatchApplicationPackageResource.ActivateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource>> ActivateAsync (Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ActivateAsync : Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource>>
override this.ActivateAsync : Azure.ResourceManager.Batch.Models.BatchApplicationPackageActivateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchApplicationPackageResource>>
Public Overridable Function ActivateAsync (content As BatchApplicationPackageActivateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BatchApplicationPackageResource))
Parameters
The parameters for the request.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET