Set-AzIntegrationAccountGeneratedIcn
更新 Azure 资源组中生成的交换控制编号(ICN)的集成帐户。
语法
Default (默认值)
Set-AzIntegrationAccountGeneratedIcn
-ResourceGroupName <String>
-Name <String>
-AgreementName <String>
-ControlNumber <String>
[-AgreementType <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Set-AzIntegrationAccountGeneratedIcn cmdlet 更新现有的集成帐户生成的交换控制编号(ICN),并返回一个表示集成帐户生成的交换控制编号的对象。
使用此 cmdlet 更新集成帐户生成的交换控制编号。
可以通过指定集成帐户名称、资源组名称和协议名称来更新生成交换控制编号的集成帐户。
不能使用此命令创建新的集成帐户生成的交换控制编号。
若要使用动态参数,只需在命令中键入它们,或键入连字符符号(-),以指示参数名称,然后重复按 TAB 键循环访问可用参数。
如果错过了所需的模板参数,cmdlet 会提示输入值。
在命令行中指定的模板参数文件值优先于模板参数对象中的模板参数值。
请提供“-AgreementType”参数以指定是要返回的 X12 还是 Edifact 控制编号
示例
示例 1
$resourceGroup.ResourceGroupName = "ResourceGroup1"
$integrationAccountName = "IntegrationAccount1"
$integrationAccountAgreementName = "X12IntegrationAccountAgreement"
$initialControlNumber = Get-AzIntegrationAccountGeneratedIcn -AgreementType X12 -ResourceGroupName $resourceGroup.ResourceGroupName -Name $integrationAccountName -AgreementName $integrationAccountAgreementName
$incrementedControlNumberValue = [convert]::ToString([convert]::ToInt32($initialControlNumber.ControlNumber, 10) + 100, 10)
Set-AzIntegrationAccountGeneratedIcn -ResourceGroupName $resourceGroup.ResourceGroupName -Name $integrationAccountName -AgreementName $integrationAccountAgreementName -ControlNumber $incrementedControlNumberValue
ControlNumber : 1100
ControlNumberChangedTime : 2/15/2017 12:36:00 AM
IsMessageProcessingFailed:
此命令获取为特定集成帐户协议生成 X12 交换控制编号的集成帐户,将其值增加 100,然后写回更新的值。
示例 2
$resourceGroup.ResourceGroupName = "ResourceGroup1"
$integrationAccountName = "IntegrationAccount1"
$integrationAccountAgreementName = "EdifactIntegrationAccountAgreement"
$initialControlNumber = Get-AzIntegrationAccountGeneratedIcn -AgreementType EdifactIntegrationAccountAgreement -ResourceGroupName $resourceGroup.ResourceGroupName -Name $integrationAccountName -AgreementName $integrationAccountAgreementName
$incrementedControlNumberValue = [convert]::ToString([convert]::ToInt32($initialControlNumber.ControlNumber, 10) + 100, 10)
Set-AzIntegrationAccountGeneratedIcn -ResourceGroupName $resourceGroup.ResourceGroupName -Name $integrationAccountName -AgreementName $integrationAccountAgreementName -ControlNumber $incrementedControlNumberValue
ControlNumber : 1100
ControlNumberChangedTime : 2/15/2017 12:36:00 AM
IsMessageProcessingFailed:
此命令获取为特定集成帐户协议生成的 EdifactIntegrationAccountAgreement 交换控制编号,将其值增加 100,然后写回更新的值。
参数
-AgreementName
集成帐户协议名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-AgreementType
集成帐户协议类型。
参数属性
| 类型: | String
|
| 默认值: | None |
| 接受的值: | X12, Edifact |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | 消息类型 |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ControlNumber
生成的控制编号新值。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
集成帐户名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | 资源名称 |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroupName
集成帐户资源组名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。
命令脚本未运行。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出