你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzSpringCloudConfigurationServiceGitRepositoryObject
为 ConfigurationServiceGitRepository 创建内存中对象。
语法
New-AzSpringCloudConfigurationServiceGitRepositoryObject
-Label <String>
-Name <String>
-Pattern <String[]>
-Uri <String>
[-HostKey <String>]
[-HostKeyAlgorithm <String>]
[-Password <String>]
[-PrivateKey <String>]
[-SearchPath <String[]>]
[-StrictHostKeyChecking <Boolean>]
[-Username <String>]
[<CommonParameters>]
说明
为 ConfigurationServiceGitRepository 创建内存中对象。
示例
示例 1:为 ConfigurationServiceGitRepository 创建内存中对象
New-AzSpringCloudConfigurationServiceGitRepositoryObject -Name fake -Label master -Uri "https://github.com/fake-user/fake-repository" -Pattern "app/dev" -debug
HostKey HostKeyAlgorithm Label Name Password Pattern PrivateKey SearchPath StrictHostKeyChecking Uri
------- ---------------- ----- ---- -------- ------- ---------- ---------- --------------------- ---
master fake {app/dev} https://github.com…
为 ConfigurationServiceGitRepository 创建内存中对象。
参数
-HostKey
git 存储库的公共 sshKey。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-HostKeyAlgorithm
git 存储库的 SshKey 算法。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Label
存储库的标签。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
存储库的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Password
git 存储库基本身份验证的密码。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Pattern
存储库模式的集合。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-PrivateKey
git 存储库的专用 sshKey 算法。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SearchPath
搜索存储库的路径。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-StrictHostKeyChecking
严格主机密钥检查或否。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Uri
存储库的 URI。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Username
git 存储库基本身份验证的用户名。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输出
ConfigurationServiceGitRepository
备注
别名