你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzDataFactoryV2LinkedServiceEncryptedCredential
使用指定的集成运行时加密链接服务中的凭据。
语法
New-AzDataFactoryV2LinkedServiceEncryptedCredential
[-IntegrationRuntimeName] <String>
[-DefinitionFile] <String>
[-Force]
[-ResourceGroupName] <String>
[-DataFactoryName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzDataFactoryV2LinkedServiceEncryptedCredential
[-IntegrationRuntimeName] <String>
[-DefinitionFile] <String>
[-Force]
[-DataFactory] <PSDataFactory>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
New-AzDataFactoryV2LinkedServiceEncryptedCredential cmdlet 使用指定的集成运行时加密链接服务中的凭据。
请确保满足以下先决条件:
- 在自承载集成运行时上启用远程访问 选项。
- Powershell 7.0 或更高版本用于执行 cmdlet。
示例
示例 1:加密链接服务中的凭据
此命令使用名为 test-selfhost-ir 的集成运行时加密文件 C:\samples\WikiSample\TaxiDemo1.js中的凭据。
New-AzDataFactoryV2LinkedServiceEncryptedCredential -DataFactoryName WikiADF -DefinitionFile 'C:\samples\WikiSample\TaxiDemo1.json' -IntegrationRuntimeName 'test-selfhost-ir' -ResourceGroupName MyResourceGroup
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DataFactory
数据工厂对象。
类型: | PSDataFactory |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DataFactoryName
数据工厂名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefinitionFile
JSON 文件路径。
类型: | String |
别名: | File |
Position: | 3 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Force
在不提示确认的情况下运行 cmdlet。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-IntegrationRuntimeName
集成运行时名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行但未运行 cmdlet 时会发生什么情况。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |