你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzContainerAppTrafficWeightObject
为 TrafficWeight 创建内存中对象。
语法
New-AzContainerAppTrafficWeightObject
[-Label <String>]
[-LatestRevision <Boolean>]
[-RevisionName <String>]
[-Weight <Int32>]
[<CommonParameters>]
说明
为 TrafficWeight 创建内存中对象。
示例
示例 1:为 TrafficWeight 创建内存中对象。
New-AzContainerAppTrafficWeightObject -Label "production" -Weight 100 -LatestRevision:$True
Label LatestRevision RevisionName Weight
----- -------------- ------------ ------
production True 100
为 TrafficWeight 创建内存中对象。
参数
-Label
将流量标签与修订相关联。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-LatestRevision
指示流量权重属于最新的稳定修订。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RevisionName
修订的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Weight
分配给修订的流量权重。
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |