IWithFirstContainerInstance.WithContainerInstance 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.
Overloads
WithContainerInstance(String) |
Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with TCP port 80 opened externally. |
WithContainerInstance(String, Int32) |
Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with a custom TCP port opened externally. |
WithContainerInstance(String)
Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with TCP port 80 opened externally.
public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithContainerInstance (string imageName);
abstract member WithContainerInstance : string -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithContainerInstance (imageName As String) As IWithCreate
Parameters
- imageName
- String
The name of the container image.
Returns
Applies to
WithContainerInstance(String, Int32)
Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with a custom TCP port opened externally.
public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithContainerInstance (string imageName, int port);
abstract member WithContainerInstance : string * int -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithContainerInstance (imageName As String, port As Integer) As IWithCreate
Parameters
- imageName
- String
The name of the container image.
- port
- Int32
The external port to be opened.
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應