Test-AzSpringCloudConfigServer
检查配置服务器设置是否有效。
语法
Test-AzSpringCloudConfigServer
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-GitHostKey <String>]
[-GitHostKeyAlgorithm <String>]
[-GitLabel <String>]
[-GitPassword <String>]
[-GitPrivateKey <String>]
[-GitRepository <IGitPatternRepository[]>]
[-GitSearchPath <String[]>]
[-GitStrictHostKeyChecking]
[-GitUri <String>]
[-GitUsername <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzSpringCloudConfigServer
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzSpringCloudConfigServer
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Test-AzSpringCloudConfigServer
-InputObject <ISpringCloudIdentity>
[-GitHostKey <String>]
[-GitHostKeyAlgorithm <String>]
[-GitLabel <String>]
[-GitPassword <String>]
[-GitPrivateKey <String>]
[-GitRepository <IGitPatternRepository[]>]
[-GitSearchPath <String[]>]
[-GitStrictHostKeyChecking]
[-GitUri <String>]
[-GitUsername <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
检查配置服务器设置是否有效。
示例
示例 1:检查配置服务器设置是否有效
Test-AzSpringCloudConfigServer -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service
IsValid
-------
True
检查配置服务器设置是否有效。
示例 2:检查配置服务器设置是否通过管道有效
Get-AzSpringCloudConfigServer -ResourceGroupName SpringCloud-gp-junxi -Name springcloud-service | Test-AzSpringCloudConfigServer
IsValid
-------
True
检查配置服务器设置是否通过管道有效。
参数
-AsJob
以作业身份运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitHostKey
git 存储库的公共 sshKey。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitHostKeyAlgorithm
git 存储库的 SshKey 算法。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitLabel
存储库的标签
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitPassword
git 存储库基本身份验证的密码。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitPrivateKey
git 存储库的专用 sshKey 算法。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitRepository
git 的存储库。
类型: | IGitPatternRepository[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitSearchPath
搜索存储库的路径
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitStrictHostKeyChecking
严格主机密钥检查或不检查。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitUri
存储库的 URI
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-GitUsername
git 存储库基本身份验证的用户名。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | ISpringCloudIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-JsonFilePath
提供给 Validate作的 Json 文件的路径
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-JsonString
提供给 Validate作的 Json 字符串
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
服务资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-NoWait
异步运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
获取唯一标识 azure 订阅Microsoft的订阅 ID。 此订阅 ID 是每个服务调用的 URI 的一部分。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |