IContainerGroupProfileProperties.RestartPolicy Property

Definition

Restart policy for all containers within the container group.

  • Always Always restart
  • OnFailure Restart on failure
  • Never Never restart
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleter(new System.String[] { "Always", "OnFailure", "Never" })]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(Create=true, Description="Restart policy for all containers within the container group.\r\n        - `Always` Always restart\r\n        - `OnFailure` Restart on failure\r\n        - `Never` Never restart\r\n        ", PossibleTypes=new System.Type[] { typeof(System.String) }, Read=true, ReadOnly=false, Required=false, SerializedName="restartPolicy", Update=true)]
public string RestartPolicy { get; set; }
[<Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleter(new System.String[] { "Always", "OnFailure", "Never" })>]
[<Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(Create=true, Description="Restart policy for all containers within the container group.\r\n        - `Always` Always restart\r\n        - `OnFailure` Restart on failure\r\n        - `Never` Never restart\r\n        ", PossibleTypes=new System.Type[] { typeof(System.String) }, Read=true, ReadOnly=false, Required=false, SerializedName="restartPolicy", Update=true)>]
member this.RestartPolicy : string with get, set
Public Property RestartPolicy As String

Property Value

Attributes

Applies to