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

AzurePowerShellScript.ContainerGroupName 属性

定义

容器组名称,如果未指定,则名称将自动生成。 不指定“containerGroupName”表示系统生成唯一名称,最终可能会将Azure Policy标记为不合规。 如果具有需要特定命名约定的Azure Policy,或者想要完全控制名称,请使用“containerGroupName”。 “containerGroupName”属性的长度必须介于 1 到 63 个字符之间,只能包含小写字母、数字和短划线,并且不能以短划线开头或结尾,不允许使用连续短划线。 若要指定“containerGroupName”,请将以下对象添加到属性:{ “containerSettings”: { “containerGroupName”: “contoso-container” } }。 如果不想指定“containerGroupName”,则不要添加“containerSettings”属性。

public string ContainerGroupName { get; set; }
member this.ContainerGroupName : string with get, set
Public Property ContainerGroupName As String

属性值

适用于