Delen via


IWithRestartPolicyBeta.WithRestartPolicy(ContainerGroupRestartPolicy) Method

Definition

Specifies the restart policy for all the container instances within the container group.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithRestartPolicy (Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerGroupRestartPolicy restartPolicy);
abstract member WithRestartPolicy : Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerGroupRestartPolicy -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithRestartPolicy (restartPolicy As ContainerGroupRestartPolicy) As IWithCreate

Parameters

restartPolicy
ContainerGroupRestartPolicy

The restart policy for all the container instances within the container group.

Returns

Applies to