Test-AzAppConfigurationKeyValue
Requests the headers and status of the given resource.
Syntax
Check (Default)
Test-AzAppConfigurationKeyValue
-Endpoint <String>
-Key <String>
[-Label <String>]
[-Select <System.Collections.Generic.List`1[System.String]>]
[-AcceptDatetime <String>]
[-IfMatch <String>]
[-IfNoneMatch <String>]
[-SyncToken <String>]
[-DefaultProfile <PSObject>]
[-PassThru]
[<CommonParameters>]
CheckViaIdentity
Test-AzAppConfigurationKeyValue
-Endpoint <String>
-InputObject <IAppConfigurationdataIdentity>
[-Label <String>]
[-Select <System.Collections.Generic.List`1[System.String]>]
[-AcceptDatetime <String>]
[-IfMatch <String>]
[-IfNoneMatch <String>]
[-SyncToken <String>]
[-DefaultProfile <PSObject>]
[-PassThru]
[<CommonParameters>]
Description
Requests the headers and status of the given resource.
Examples
Example 1: Test a key-value in an App Configuration store
Test-AzAppConfigurationKeyValue -Endpoint $endpoint -Key keyName1
Test a key-value in an App Configuration store
Example 2: Test a key-value in an App Configuration store with wildcard
Test-AzAppConfigurationKeyValue -Endpoint $endpoint -Key keyName*
Test a key-value in an App Configuration store with wildcard
Example 3: Test a key-value in an App Configuration store
Test-AzAppConfigurationKeyValue -Endpoint $endpoint -Key keyName5
Test-AzAppConfigurationKeyValue_Check: The server responded with a Request Error, Status: NotFound
If the key-value does not exist, the cmdlet will throw an error.
Parameters
-AcceptDatetime
Requests the server to respond with the state of the resource at the specified time.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Endpoint
The endpoint of the App Configuration instance to send requests to.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-IfMatch
Used to perform an operation only if the targeted resource's etag matches the value provided.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-IfNoneMatch
Used to perform an operation only if the targeted resource's etag does not match the value provided.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
CheckViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Key
The key of the key-value to retrieve.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Check
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Label
The label of the key-value to retrieve.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PassThru
Returns true when the command succeeds
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Select
Used to select what fields are present in the returned resource(s).
Parameter properties
Type: List<T> [ String ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SyncToken
Used to guarantee real-time consistency between requests.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs