你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzIntegrationAccountGeneratedIcn
此 cmdlet 检索每个协议生成的交换控制编号的当前值。
语法
Get-AzIntegrationAccountGeneratedIcn
-ResourceGroupName <String>
-Name <String>
[-AgreementName <String>]
[-AgreementType <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
此 cmdlet 用于灾难恢复方案,以检索生成的交换控制编号的当前值,以便使用 Set-AzIntegrationAccountGeneratedIcn 写回增加的值。 应增加交换控制编号,以避免在活动区域中发生灾难时无法复制到被动区域的数字重复交换控制编号。 请提供“-AgreementType”参数以指定是要返回的 X12 还是 Edifact 控制编号
示例
示例 1
Get-AzIntegrationAccountGeneratedIcn -AgreementType "X12" -ResourceGroupName "ResourceGroup1" -Name "IntegrationAccount1" -AgreementName "X12IntegrationAccountAgreement"
ControlNumber : 1000
ControlNumberChangedTime : 2/15/2017 12:36:00 AM
IsMessageProcessingFailed:
此命令按协议名称获取生成的集成帐户 X12 交换控制编号。 请确保指定的协议的类型为“X12”
示例 2
Get-AzIntegrationAccountGeneratedIcn -AgreementType "Edifact" -ResourceGroupName "ResourceGroup1" -Name "IntegrationAccount1" -AgreementName "EdifactIntegrationAccountAgreement"
ControlNumber : 1000
ControlNumberChangedTime : 2/15/2017 12:36:00 AM
IsMessageProcessingFailed:
此命令按协议名称获取生成的 Edifact 交换控制编号的集成帐户。 请确保指定的协议的类型为“Edifact”
示例 3
Get-AzIntegrationAccountGeneratedIcn -AgreementType "X12" -ResourceGroupName "ResourceGroup1" -Name "IntegrationAccount1"
ControlNumber : 1000
ControlNumberChangedTime : 2/22/2017 8:05:41 PM
AgreementName : X12IntegrationAccountAgreement1
IsMessageProcessingFailed:
ControlNumber : 1000
ControlNumberChangedTime : 2/22/2017 8:05:41 PM
AgreementName : X12IntegrationAccountAgreement2
IsMessageProcessingFailed:
ControlNumber : No generated control number was found for this agreement.
ControlNumberChangedTime : 1/1/0001 12:00:00 AM
AgreementName : X12IntegrationAccountAgreement3
IsMessageProcessingFailed:
此命令按集成帐户名称获取所有生成的 X12 交换控制编号。
参数
-AgreementName
集成帐户协议名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-AgreementType
集成帐户协议类型。
类型: | String |
别名: | MessageType |
接受的值: | X12, Edifact |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
集成帐户名称。
类型: | String |
别名: | ResourceName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
集成帐户资源组名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
输入
输出
IntegrationAccountControlNumber