From 2c34cee54d8a5c0192ce41a1250ecd46b7a24289 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 10 Apr 2026 11:37:15 -0700 Subject: [PATCH 01/10] Autogen updates --- src/AppConfiguration/AppConfiguration.sln | 34 +- .../AppConfiguration/Az.AppConfiguration.psd1 | 12 +- .../help/Az.AppConfiguration.md | 15 + .../help/Get-AzAppConfigurationKey.md | 6 +- .../help/Get-AzAppConfigurationLabel.md | 26 +- .../help/Get-AzAppConfigurationRevision.md | 46 ++- .../help/New-AzAppConfigurationSnapshot.md | 355 ++++++++++++++++++ .../help/Remove-AzAppConfigurationKeyValue.md | 29 +- .../help/Remove-AzAppConfigurationLock.md | 29 +- .../help/Set-AzAppConfigurationKeyValue.md | 51 ++- .../help/Set-AzAppConfigurationLock.md | 25 +- .../help/Test-AzAppConfigurationKeyValue.md | 53 ++- .../Properties/AssemblyInfo.cs | 4 +- .../AppConfigurationdata.Autorest/README.md | 7 +- .../docs/Az.AppConfigurationdata.md | 17 +- .../docs/Get-AzAppConfigurationKey.md | 6 +- .../docs/Get-AzAppConfigurationLabel.md | 24 +- .../docs/Get-AzAppConfigurationRevision.md | 42 ++- .../docs/Remove-AzAppConfigurationKeyValue.md | 27 +- .../docs/Remove-AzAppConfigurationLock.md | 31 +- .../docs/Set-AzAppConfigurationKeyValue.md | 47 ++- .../docs/Set-AzAppConfigurationLock.md | 27 +- .../docs/Test-AzAppConfigurationKeyValue.md | 48 ++- .../generate-info.json | 2 +- ...zAppConfigurationOperationDetail.Tests.ps1 | 21 ++ .../Get-AzAppConfigurationSnapshot.Tests.ps1 | 29 ++ .../New-AzAppConfigurationSnapshot.Tests.ps1 | 41 ++ .../Test-AzAppConfigurationSnapshot.Tests.ps1 | 29 ++ ...pdate-AzAppConfigurationSnapshot.Tests.ps1 | 41 ++ 29 files changed, 995 insertions(+), 129 deletions(-) create mode 100644 src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 diff --git a/src/AppConfiguration/AppConfiguration.sln b/src/AppConfiguration/AppConfiguration.sln index 13b1bafb8ade..61d92c7ea7aa 100644 --- a/src/AppConfiguration/AppConfiguration.sln +++ b/src/AppConfiguration/AppConfiguration.sln @@ -19,14 +19,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppConfiguration", "AppConfiguration\AppConfiguration.csproj", "{AAA0CCC9-9FD8-4D1E-98FE-62005C6A6A05}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfiguration.Autorest", "AppConfiguration.Autorest", "{0274B85D-B38C-5E54-FB34-3750CA0399A4}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfiguration", "..\..\generated\AppConfiguration\AppConfiguration.Autorest\Az.AppConfiguration.csproj", "{D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{345ED00B-6CD0-4840-8B57-AD3AD0D212BB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -121,18 +121,6 @@ Global {AAA0CCC9-9FD8-4D1E-98FE-62005C6A6A05}.Release|x64.Build.0 = Release|Any CPU {AAA0CCC9-9FD8-4D1E-98FE-62005C6A6A05}.Release|x86.ActiveCfg = Release|Any CPU {AAA0CCC9-9FD8-4D1E-98FE-62005C6A6A05}.Release|x86.Build.0 = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|x64.ActiveCfg = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|x64.Build.0 = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|x86.ActiveCfg = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Debug|x86.Build.0 = Debug|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|Any CPU.Build.0 = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|x64.ActiveCfg = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|x64.Build.0 = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|x86.ActiveCfg = Release|Any CPU - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4}.Release|x86.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Debug|Any CPU.Build.0 = Debug|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -145,6 +133,18 @@ Global {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x64.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.ActiveCfg = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.Build.0 = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x64.ActiveCfg = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x64.Build.0 = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x86.ActiveCfg = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x86.Build.0 = Debug|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|Any CPU.Build.0 = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x64.ActiveCfg = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x64.Build.0 = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x86.ActiveCfg = Release|Any CPU + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -156,7 +156,7 @@ Global {EBA3011C-3C1E-449A-BF81-1284144857E3} = {E4EA62CD-566F-439D-A591-A3969389B28E} {8B389447-87EC-484E-B771-5D387632713A} = {E4EA62CD-566F-439D-A591-A3969389B28E} {AFC99D4F-4983-4CC4-A284-4A763374FC3B} = {E4EA62CD-566F-439D-A591-A3969389B28E} - {8826F459-27E1-4CC7-B6B2-0A47AE8ABFF4} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709} = {0274B85D-B38C-5E54-FB34-3750CA0399A4} + {345ED00B-6CD0-4840-8B57-AD3AD0D212BB} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} EndGlobalSection EndGlobal diff --git a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 index 4a19a88120ce..9a7dc08be586 100644 --- a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 +++ b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/3/2026 +# Generated on: 4/10/2026 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.3'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.4'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AppConfiguration.Autorest/bin/Az.AppConfiguration.private.dll', @@ -75,15 +75,19 @@ NestedModules = @('AppConfiguration.Autorest/Az.AppConfiguration.psm1', FunctionsToExport = 'Clear-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationKey', 'Get-AzAppConfigurationKeyValue', 'Get-AzAppConfigurationLabel', + 'Get-AzAppConfigurationOperationDetail', 'Get-AzAppConfigurationReplica', 'Get-AzAppConfigurationRevision', - 'Get-AzAppConfigurationStore', 'Get-AzAppConfigurationStoreKey', - 'New-AzAppConfigurationReplica', 'New-AzAppConfigurationStore', + 'Get-AzAppConfigurationSnapshot', 'Get-AzAppConfigurationStore', + 'Get-AzAppConfigurationStoreKey', 'New-AzAppConfigurationReplica', + 'New-AzAppConfigurationSnapshot', 'New-AzAppConfigurationStore', 'New-AzAppConfigurationStoreKey', 'Remove-AzAppConfigurationKeyValue', 'Remove-AzAppConfigurationLock', 'Remove-AzAppConfigurationReplica', 'Remove-AzAppConfigurationStore', 'Set-AzAppConfigurationKeyValue', 'Set-AzAppConfigurationLock', 'Test-AzAppConfigurationKeyValue', + 'Test-AzAppConfigurationSnapshot', 'Test-AzAppConfigurationStoreNameAvailability', + 'Update-AzAppConfigurationSnapshot', 'Update-AzAppConfigurationStore' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. diff --git a/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md b/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md index 85dec97e2ec3..ca575cead883 100644 --- a/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md +++ b/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md @@ -26,12 +26,18 @@ Gets a list of key-values. ### [Get-AzAppConfigurationLabel](Get-AzAppConfigurationLabel.md) Gets a list of labels. +### [Get-AzAppConfigurationOperationDetail](Get-AzAppConfigurationOperationDetail.md) +Gets the state of a long running operation. + ### [Get-AzAppConfigurationReplica](Get-AzAppConfigurationReplica.md) Gets the properties of the specified replica. ### [Get-AzAppConfigurationRevision](Get-AzAppConfigurationRevision.md) Gets a list of key-value revisions. +### [Get-AzAppConfigurationSnapshot](Get-AzAppConfigurationSnapshot.md) +Gets a list of key-value snapshots. + ### [Get-AzAppConfigurationStore](Get-AzAppConfigurationStore.md) Get or list app configuration stores. @@ -41,6 +47,9 @@ Lists the access key for the specified configuration store. ### [New-AzAppConfigurationReplica](New-AzAppConfigurationReplica.md) Create a replica with the specified parameters. +### [New-AzAppConfigurationSnapshot](New-AzAppConfigurationSnapshot.md) +Create a key-value snapshot. + ### [New-AzAppConfigurationStore](New-AzAppConfigurationStore.md) Create a configuration store with the specified parameters. @@ -68,9 +77,15 @@ Locks a key-value. ### [Test-AzAppConfigurationKeyValue](Test-AzAppConfigurationKeyValue.md) Requests the headers and status of the given resource. +### [Test-AzAppConfigurationSnapshot](Test-AzAppConfigurationSnapshot.md) +Requests the headers and status of the given resource. + ### [Test-AzAppConfigurationStoreNameAvailability](Test-AzAppConfigurationStoreNameAvailability.md) Checks whether the configuration store name is available for use. +### [Update-AzAppConfigurationSnapshot](Update-AzAppConfigurationSnapshot.md) +Update the state of a key-value snapshot. + ### [Update-AzAppConfigurationStore](Update-AzAppConfigurationStore.md) Update a configuration store with the specified parameters. diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKey.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKey.md index 0f9b5f2baa70..314548430edd 100644 --- a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKey.md +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKey.md @@ -55,7 +55,8 @@ Get key list in an App Configuration store with wildcard ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -70,7 +71,8 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationLabel.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationLabel.md index 99fb05b6eda6..c6d8869b6178 100644 --- a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationLabel.md +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationLabel.md @@ -14,8 +14,9 @@ Gets a list of labels. ``` Get-AzAppConfigurationLabel -Endpoint [-After ] [-Name ] - [-Select ] [-AcceptDatetime ] [-SyncToken ] - [-DefaultProfile ] [] + [-Select ] [-AcceptDatetime ] + [-ClientRequestId ] [-SyncToken ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -40,7 +41,8 @@ List all the labels in an App Configuration store. ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -55,7 +57,23 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationRevision.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationRevision.md index 0e1914897c98..dc04ae9d5596 100644 --- a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationRevision.md +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationRevision.md @@ -14,8 +14,10 @@ Gets a list of key-value revisions. ``` Get-AzAppConfigurationRevision -Endpoint [-After ] [-Key ] [-Label ] - [-Select ] [-AcceptDatetime ] [-SyncToken ] - [-DefaultProfile ] [] + [-Select ] + [-Tag ] [-AcceptDatetime ] + [-ClientRequestId ] [-SyncToken ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -57,7 +59,8 @@ List the revision of a key-value in an App Configuration store ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -72,7 +75,23 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String @@ -119,6 +138,8 @@ Accept wildcard characters: False ### -Key A filter used to match keys. +Syntax reference: +https://aka.ms/azconfig/docs/restapirevisions ```yaml Type: System.String @@ -133,7 +154,7 @@ Accept wildcard characters: False ``` ### -Label -A filter used to match labels +A filter used to match labels. ```yaml Type: System.String @@ -177,6 +198,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +A filter used to query by tags. + +```yaml +Type: System.Collections.Generic.List`1[System.String] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..7a881685aab3 --- /dev/null +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md @@ -0,0 +1,355 @@ +--- +external help file: Az.AppConfiguration-help.xml +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/new-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# New-AzAppConfigurationSnapshot + +## SYNOPSIS +Create a key-value snapshot. + +## SYNTAX + +### Create (Default) +``` +New-AzAppConfigurationSnapshot -Endpoint -Name [-SyncToken ] -Entity + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzAppConfigurationSnapshot -Endpoint -Name [-SyncToken ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzAppConfigurationSnapshot -Endpoint -Name [-SyncToken ] -JsonFilePath + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateExpanded +``` +New-AzAppConfigurationSnapshot -Endpoint -Name [-SyncToken ] + -Filter [-CompositionType ] [-RetentionPeriod ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaIdentityExpanded +``` +New-AzAppConfigurationSnapshot -Endpoint -InputObject + [-SyncToken ] -Filter [-CompositionType ] [-RetentionPeriod ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentity +``` +New-AzAppConfigurationSnapshot -Endpoint -InputObject + [-SyncToken ] -Entity [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a key-value snapshot. + +## EXAMPLES + +### Example 1: Create a snapshot with a key filter +```powershell +$filter = @{ Key = "app/*" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Filter $filter +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Create a key-value snapshot that captures all key-values matching the key filter "app/*". + +### Example 2: Create a snapshot with a retention period and composition type +```powershell +$filter = @{ Key = "app/*"; Label = "prod" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "prodSnapshot" -Filter $filter -CompositionType "key_label" -RetentionPeriod 7776000 +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +prodSnapshot ready key_label 7/21/2023 02:40:00 10/19/2023 02:40:00 7776000 2048 10 ghijkl +``` + +Create a snapshot with key_label composition type and a 90-day retention period, filtering by both key and label. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CompositionType +The composition type describes how the key-values within the snapshot arecomposed. +The 'key' composition type ensures there are no two key-valuescontaining the same key. +The 'key_label' composition type ensures there are notwo key-values containing the same key and label. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +endpoint - server parameter + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Entity +A snapshot is a named, immutable subset of an App Configuration store's key-values. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot +Parameter Sets: Create, CreateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Filter +A list of filters used to filter the key-values included in the snapshot. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IKeyValueFilter[] +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: CreateViaIdentityExpanded, CreateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to create. + +```yaml +Type: System.String +Parameter Sets: Create, CreateViaJsonString, CreateViaJsonFilePath, CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RetentionPeriod +The amount of time, in seconds, that a snapshot will remain in the archivedstate before expiring. +This property is only writable during the creation of asnapshot. +If not specified, the default lifetime of key-value revisions will beused. + +```yaml +Type: System.Int64 +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The tags of the snapshot. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationKeyValue.md index 00f6113cbf06..f06d160bcaee 100644 --- a/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationKeyValue.md @@ -14,16 +14,17 @@ Deletes a key-value. ### Delete (Default) ``` -Remove-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-SyncToken ] [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Remove-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] + [-ClientRequestId ] [-IfMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzAppConfigurationKeyValue -Endpoint -InputObject - [-Label ] [-IfMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-Label ] [-ClientRequestId ] [-IfMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -53,6 +54,21 @@ Remove a key-value in an App Configuration store ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -85,7 +101,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationLock.md index 56575b276b92..8ff49f6912f4 100644 --- a/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationLock.md +++ b/src/AppConfiguration/AppConfiguration/help/Remove-AzAppConfigurationLock.md @@ -14,16 +14,16 @@ Unlocks a key-value. ### Delete (Default) ``` -Remove-AzAppConfigurationLock -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] +Remove-AzAppConfigurationLock -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzAppConfigurationLock -Endpoint -InputObject [-Label ] - [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -54,6 +54,21 @@ This key-value can be modified. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -86,7 +101,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -101,7 +117,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md index 2773b0c300d1..7b67d6463f1e 100644 --- a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md @@ -14,24 +14,24 @@ Put a key-value. ### PutExpanded (Default) ``` -Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] [-Key1 ] +Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] [-Label1 ] [-LastModified ] [-Locked] [-Tag ] [-Value ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### PutViaJsonFilePath ``` -Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### PutViaJsonString ``` -Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] +Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -63,8 +63,23 @@ If the key exists, the value will be updated. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ContentType -. +The content type of the value stored within the key-value. ```yaml Type: System.String @@ -110,7 +125,7 @@ Accept wildcard characters: False ``` ### -Etag -. +A value representing the current state of the resource. ```yaml Type: System.String @@ -125,7 +140,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -140,7 +156,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String @@ -230,7 +247,7 @@ Accept wildcard characters: False ``` ### -Label1 -. +The label the key-value belongs to. ```yaml Type: System.String @@ -245,7 +262,7 @@ Accept wildcard characters: False ``` ### -LastModified -. +A date representing the last time the key-value was modified. ```yaml Type: System.DateTime @@ -260,7 +277,7 @@ Accept wildcard characters: False ``` ### -Locked -. +Indicates whether the key-value is locked. ```yaml Type: System.Management.Automation.SwitchParameter @@ -290,7 +307,7 @@ Accept wildcard characters: False ``` ### -Tag -Dictionary of \ +The tags of the key-value ```yaml Type: System.Collections.Hashtable @@ -305,7 +322,7 @@ Accept wildcard characters: False ``` ### -Value -. +The value of the key-value. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationLock.md index dde5f698a822..565377d659c8 100644 --- a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationLock.md +++ b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationLock.md @@ -13,8 +13,8 @@ Locks a key-value. ## SYNTAX ``` -Set-AzAppConfigurationLock -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] +Set-AzAppConfigurationLock -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -46,6 +46,21 @@ This key-value will be locked and can not be modified. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -78,7 +93,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -93,7 +109,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationKeyValue.md index a9712cdaa589..b7ded654ecc1 100644 --- a/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationKeyValue.md @@ -15,17 +15,19 @@ Requests the headers and status of the given resource. ### Check (Default) ``` Test-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] - [-Select ] [-AcceptDatetime ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] - [] + [-Select ] + [-Tag ] [-AcceptDatetime ] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [] ``` ### CheckViaIdentity ``` Test-AzAppConfigurationKeyValue -Endpoint -InputObject - [-Label ] [-Select ] [-AcceptDatetime ] - [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] - [] + [-Label ] [-Select ] + [-Tag ] [-AcceptDatetime ] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [] ``` ## DESCRIPTION @@ -61,7 +63,23 @@ 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. +Requests the server to respond with the state of the resource at the specified +time. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String @@ -107,7 +125,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -122,7 +141,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String @@ -226,6 +246,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +A filter used to query by tags. + +```yaml +Type: System.Collections.Generic.List`1[System.String] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs index 0847b33929ab..f3d88ade9772 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AppConfigurationdata")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md index 723ad3df7a47..0c13b4406f7e 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md @@ -44,11 +44,11 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -commit: 498ccf7ddf78ced8ef515f88b755b2eb3775de9e +commit: 1d3a6fbdea5ce574dd89ae581d11f7b7cbcdba3b require: - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/1.0/appconfiguration.json + - $(repo)/specification/appconfiguration/data-plane/AppConfiguration/stable/2024-09-01/appconfiguration.json root-module-name: $(prefix).AppConfiguration module-version: 1.0.0 @@ -63,6 +63,9 @@ nested-object-to-string: true endpoint-resource-id-key-name: AzureAppConfigurationEndpointResourceId directive: + # Break circular reference in AzureCoreFoundationsInnerError + - no-inline: + - AzureCoreFoundationsInnerError # Remove the Etag and Last-Modified in headers from the response - from: swagger-document where: $.*.*.*.*.*.headers diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md index 4b9d60bf1977..91f61381732c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md @@ -1,6 +1,6 @@ --- Module Name: Az.AppConfigurationdata -Module Guid: 3b9833a8-dc77-4172-afe7-da97ed36393d +Module Guid: 9b0ee59f-e91d-4e8f-adf5-52ea1d1d373f Download Help Link: https://learn.microsoft.com/powershell/module/az.appconfigurationdata Help Version: 1.0.0.0 Locale: en-US @@ -20,9 +20,18 @@ Gets a list of key-values. ### [Get-AzAppConfigurationLabel](Get-AzAppConfigurationLabel.md) Gets a list of labels. +### [Get-AzAppConfigurationOperationDetail](Get-AzAppConfigurationOperationDetail.md) +Gets the state of a long running operation. + ### [Get-AzAppConfigurationRevision](Get-AzAppConfigurationRevision.md) Gets a list of key-value revisions. +### [Get-AzAppConfigurationSnapshot](Get-AzAppConfigurationSnapshot.md) +Gets a list of key-value snapshots. + +### [New-AzAppConfigurationSnapshot](New-AzAppConfigurationSnapshot.md) +Create a key-value snapshot. + ### [Remove-AzAppConfigurationKeyValue](Remove-AzAppConfigurationKeyValue.md) Deletes a key-value. @@ -38,3 +47,9 @@ Locks a key-value. ### [Test-AzAppConfigurationKeyValue](Test-AzAppConfigurationKeyValue.md) Requests the headers and status of the given resource. +### [Test-AzAppConfigurationSnapshot](Test-AzAppConfigurationSnapshot.md) +Requests the headers and status of the given resource. + +### [Update-AzAppConfigurationSnapshot](Update-AzAppConfigurationSnapshot.md) +Update the state of a key-value snapshot. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKey.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKey.md index 7dc7de50abf5..81a4b2bc2c09 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKey.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKey.md @@ -55,7 +55,8 @@ Get key list in an App Configuration store with wildcard ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -70,7 +71,8 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationLabel.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationLabel.md index 959914ea2ae3..62f592027d61 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationLabel.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationLabel.md @@ -14,7 +14,8 @@ Gets a list of labels. ``` Get-AzAppConfigurationLabel -Endpoint [-After ] [-Name ] [-Select >] - [-AcceptDatetime ] [-SyncToken ] [-DefaultProfile ] [] + [-AcceptDatetime ] [-ClientRequestId ] [-SyncToken ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -39,7 +40,8 @@ List all the labels in an App Configuration store. ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -54,7 +56,23 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationRevision.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationRevision.md index 8d7bd1331d9c..b2da5eea061d 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationRevision.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationRevision.md @@ -14,8 +14,8 @@ Gets a list of key-value revisions. ``` Get-AzAppConfigurationRevision -Endpoint [-After ] [-Key ] [-Label ] - [-Select >] [-AcceptDatetime ] [-SyncToken ] [-DefaultProfile ] - [] + [-Select >] [-Tag >] [-AcceptDatetime ] [-ClientRequestId ] + [-SyncToken ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -57,7 +57,8 @@ List the revision of a key-value in an App Configuration store ## PARAMETERS ### -AcceptDatetime -Requests the server to respond with the state of the resource at the specified time. +Requests the server to respond with the state of the resource at the specified +time. ```yaml Type: System.String @@ -72,7 +73,23 @@ Accept wildcard characters: False ``` ### -After -Instructs the server to return elements that appear after the element referred to by the specified token. +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String @@ -133,7 +150,7 @@ Accept wildcard characters: False ``` ### -Label -A filter used to match labels +A filter used to match labels. ```yaml Type: System.String @@ -177,6 +194,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +A filter used to query by tags. + +```yaml +Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationKeyValue.md index 614094e7ea4d..d5ae89692173 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationKeyValue.md @@ -14,15 +14,16 @@ Deletes a key-value. ### Delete (Default) ``` -Remove-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-SyncToken ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] + [-ClientRequestId ] [-IfMatch ] [-SyncToken ] [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] ``` ### DeleteViaIdentity ``` Remove-AzAppConfigurationKeyValue -Endpoint -InputObject - [-Label ] [-IfMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] - [-Confirm] [-WhatIf] [] + [-Label ] [-ClientRequestId ] [-IfMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -52,6 +53,21 @@ Remove a key-value in an App Configuration store ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -84,7 +100,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationLock.md index a92744c236d1..e3285541cb5d 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationLock.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Remove-AzAppConfigurationLock.md @@ -14,16 +14,16 @@ Unlocks a key-value. ### Delete (Default) ``` -Remove-AzAppConfigurationLock -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Remove-AzAppConfigurationLock -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ### DeleteViaIdentity ``` Remove-AzAppConfigurationLock -Endpoint -InputObject - [-Label ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-Label ] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] + [-SyncToken ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -54,6 +54,21 @@ This key-value can be modified. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -86,7 +101,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -101,7 +117,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md index 6b940a8aa9c1..b6b86fe2730a 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md @@ -14,8 +14,8 @@ Put a key-value. ### PutExpanded (Default) ``` -Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] [-Key1 ] +Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] [-Label1 ] [-LastModified ] [-Locked] [-Tag ] [-Value ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -23,15 +23,15 @@ Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ### PutViaJsonFilePath ``` Set-AzAppConfigurationKeyValue -Endpoint -Key -JsonFilePath [-Label ] - [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### PutViaJsonString ``` Set-AzAppConfigurationKeyValue -Endpoint -Key -JsonString [-Label ] - [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -63,8 +63,23 @@ If the key exists, the value will be updated. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ContentType -. +The content type of the value stored within the key-value. ```yaml Type: System.String @@ -110,7 +125,7 @@ Accept wildcard characters: False ``` ### -Etag -. +A value representing the current state of the resource. ```yaml Type: System.String @@ -125,7 +140,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -140,7 +156,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String @@ -230,7 +247,7 @@ Accept wildcard characters: False ``` ### -Label1 -. +The label the key-value belongs to. ```yaml Type: System.String @@ -245,7 +262,7 @@ Accept wildcard characters: False ``` ### -LastModified -. +A date representing the last time the key-value was modified. ```yaml Type: System.DateTime @@ -260,7 +277,7 @@ Accept wildcard characters: False ``` ### -Locked -. +Indicates whether the key-value is locked. ```yaml Type: System.Management.Automation.SwitchParameter @@ -290,7 +307,7 @@ Accept wildcard characters: False ``` ### -Tag -Dictionary of \ +The tags of the key-value ```yaml Type: System.Collections.Hashtable @@ -305,7 +322,7 @@ Accept wildcard characters: False ``` ### -Value -. +The value of the key-value. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationLock.md index 795701f115b2..1afac130bf9c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationLock.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationLock.md @@ -13,9 +13,9 @@ Locks a key-value. ## SYNTAX ``` -Set-AzAppConfigurationLock -Endpoint -Key [-Label ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Set-AzAppConfigurationLock -Endpoint -Key [-Label ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -46,6 +46,21 @@ This key-value will be locked and can not be modified. ## PARAMETERS +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -78,7 +93,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -93,7 +109,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationKeyValue.md index f7fec89c6a46..a4725a6746c7 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationKeyValue.md @@ -15,15 +15,16 @@ Requests the headers and status of the given resource. ### Check (Default) ``` Test-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-Select >] - [-AcceptDatetime ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] - [-DefaultProfile ] [-PassThru] [] + [-Tag >] [-AcceptDatetime ] [-ClientRequestId ] [-IfMatch ] + [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] [] ``` ### CheckViaIdentity ``` Test-AzAppConfigurationKeyValue -Endpoint -InputObject - [-Label ] [-Select >] [-AcceptDatetime ] [-IfMatch ] - [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] [] + [-Label ] [-Select >] [-Tag >] [-AcceptDatetime ] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [] ``` ## DESCRIPTION @@ -59,7 +60,23 @@ 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. +Requests the server to respond with the state of the resource at the specified +time. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String @@ -105,7 +122,8 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the value provided. +Used to perform an operation only if the targeted resource's etag matches the +value provided. ```yaml Type: System.String @@ -120,7 +138,8 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not match the value provided. +Used to perform an operation only if the targeted resource's etag does not +match the value provided. ```yaml Type: System.String @@ -224,6 +243,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tag +A filter used to query by tags. + +```yaml +Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json index 141d181a7aab..2c91f373516c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "e8ad164f-f3b3-4e5e-965f-6e2e8f9a156f" + "generate_Id": "8b02bfc7-a854-4b5b-96ed-eaf89ba0f5ae" } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 new file mode 100644 index 000000000000..561943188c23 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationOperationDetail')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzAppConfigurationOperationDetail.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzAppConfigurationOperationDetail' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 new file mode 100644 index 000000000000..f47e546fe553 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationSnapshot')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzAppConfigurationSnapshot.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzAppConfigurationSnapshot' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 new file mode 100644 index 000000000000..f5efdf23942a --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzAppConfigurationSnapshot')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzAppConfigurationSnapshot.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzAppConfigurationSnapshot' { + It 'Create' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 new file mode 100644 index 000000000000..327a414e3e13 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Test-AzAppConfigurationSnapshot')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Test-AzAppConfigurationSnapshot.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Test-AzAppConfigurationSnapshot' { + It 'Check' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Check1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CheckViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 new file mode 100644 index 000000000000..12aba6e92e6e --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzAppConfigurationSnapshot')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzAppConfigurationSnapshot.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzAppConfigurationSnapshot' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Update' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From c0775152b5a573278f698a65ff11c36b04e41dfa Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 10 Apr 2026 11:46:23 -0700 Subject: [PATCH 02/10] New items --- .../Get-AzAppConfigurationOperationDetail.md | 111 ++++++ .../help/Get-AzAppConfigurationSnapshot.md | 266 +++++++++++++ .../help/New-AzAppConfigurationSnapshot.md | 2 +- .../help/Test-AzAppConfigurationSnapshot.md | 232 ++++++++++++ .../help/Update-AzAppConfigurationSnapshot.md | 321 ++++++++++++++++ .../Get-AzAppConfigurationOperationDetail.md | 112 ++++++ .../docs/Get-AzAppConfigurationSnapshot.md | 251 +++++++++++++ .../docs/New-AzAppConfigurationSnapshot.md | 351 ++++++++++++++++++ .../docs/Test-AzAppConfigurationSnapshot.md | 232 ++++++++++++ .../docs/Update-AzAppConfigurationSnapshot.md | 320 ++++++++++++++++ .../Get-AzAppConfigurationOperationDetail.md | 12 + .../Get-AzAppConfigurationSnapshot.md | 26 ++ .../New-AzAppConfigurationSnapshot.md | 28 ++ .../Test-AzAppConfigurationSnapshot.md | 22 ++ .../Update-AzAppConfigurationSnapshot.md | 26 ++ 15 files changed, 2311 insertions(+), 1 deletion(-) create mode 100644 src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationOperationDetail.md create mode 100644 src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationOperationDetail.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/docs/Update-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationOperationDetail.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/examples/New-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/examples/Test-AzAppConfigurationSnapshot.md create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/examples/Update-AzAppConfigurationSnapshot.md diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationOperationDetail.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationOperationDetail.md new file mode 100644 index 000000000000..7f61d34a9b26 --- /dev/null +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationOperationDetail.md @@ -0,0 +1,111 @@ +--- +external help file: Az.AppConfiguration-help.xml +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationoperationdetail +schema: 2.0.0 +--- + +# Get-AzAppConfigurationOperationDetail + +## SYNOPSIS +Gets the state of a long running operation. + +## SYNTAX + +``` +Get-AzAppConfigurationOperationDetail -Endpoint -Snapshot [-ClientRequestId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the state of a long running operation. + +## EXAMPLES + +### Example 1: Get the status of a snapshot creation operation +```powershell +Get-AzAppConfigurationOperationDetail -Endpoint $endpoint -Snapshot "mySnapshot" +``` + +```output +Id : xxxx +Status : Succeeded +``` + +Get the state of a long running operation for a snapshot creation. + +## PARAMETERS + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Snapshot +Snapshot identifier for the long running operation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IOperationDetails + +## NOTES + +## RELATED LINKS diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..2724d7f68199 --- /dev/null +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md @@ -0,0 +1,266 @@ +--- +external help file: Az.AppConfiguration-help.xml +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Get-AzAppConfigurationSnapshot + +## SYNOPSIS +Gets a list of key-value snapshots. + +## SYNTAX + +### Get (Default) +``` +Get-AzAppConfigurationSnapshot -Endpoint [-Name ] [-After ] + [-Select ] + [-Status ] [-SyncToken ] + [-DefaultProfile ] [] +``` + +### Get1 +``` +Get-AzAppConfigurationSnapshot -Endpoint -Name + [-Select ] [-SyncToken ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzAppConfigurationSnapshot -Endpoint -InputObject + [-Select ] [-SyncToken ] [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a list of key-value snapshots. + +## EXAMPLES + +### Example 1: List all snapshots in an App Configuration store +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +List all key-value snapshots in an App Configuration store. + +### Example 2: Get a specific snapshot by name +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Get a single key-value snapshot by name from an App Configuration store. + +## PARAMETERS + +### -After +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +A filter for the name of the returned snapshots. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +```yaml +Type: System.String +Parameter Sets: Get1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Select +Used to select what fields are present in the returned resource(s). + +```yaml +Type: System.Collections.Generic.List`1[System.String] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Used to filter returned snapshots by their status property. + +```yaml +Type: System.Collections.Generic.List`1[System.String] +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## NOTES + +## RELATED LINKS diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md index 7a881685aab3..c7d4072e6c86 100644 --- a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md @@ -140,7 +140,7 @@ Accept wildcard characters: False ``` ### -Endpoint -endpoint - server parameter +The endpoint of the App Configuration instance to send requests to. ```yaml Type: System.String diff --git a/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..46e2164d84c8 --- /dev/null +++ b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md @@ -0,0 +1,232 @@ +--- +external help file: Az.AppConfiguration-help.xml +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/test-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Test-AzAppConfigurationSnapshot + +## SYNOPSIS +Requests the headers and status of the given resource. + +## SYNTAX + +### Check (Default) +``` +Test-AzAppConfigurationSnapshot -Endpoint [-After ] [-ClientRequestId ] + [-SyncToken ] [-DefaultProfile ] [-PassThru] + [] +``` + +### Check1 +``` +Test-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-SyncToken ] [-IfMatch ] [-IfNoneMatch ] [-DefaultProfile ] [-PassThru] + [] +``` + +### CheckViaIdentity +``` +Test-AzAppConfigurationSnapshot -Endpoint -InputObject + [-ClientRequestId ] [-SyncToken ] [-IfMatch ] [-IfNoneMatch ] + [-DefaultProfile ] [-PassThru] [] +``` + +## DESCRIPTION +Requests the headers and status of the given resource. + +## EXAMPLES + +### Example 1: Check if snapshots exist in an App Configuration store +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -PassThru +``` + +```output +True +``` + +Check whether any snapshots exist in the App Configuration store. Returns True if snapshots are found. + +### Example 2: Check if a specific snapshot exists +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -PassThru +``` + +```output +True +``` + +Check whether a specific snapshot exists in the App Configuration store by name. + +## PARAMETERS + +### -After +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: Check +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: Check1, CheckViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: Check1, CheckViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: CheckViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to check. + +```yaml +Type: System.String +Parameter Sets: Check1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..5ae5e6243d4f --- /dev/null +++ b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationSnapshot.md @@ -0,0 +1,321 @@ +--- +external help file: Az.AppConfiguration-help.xml +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/update-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Update-AzAppConfigurationSnapshot + +## SYNOPSIS +Update the state of a key-value snapshot. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-Status ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonString +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### Update +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] -Entity + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAppConfigurationSnapshot -Endpoint -InputObject + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-Status ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaIdentity +``` +Update-AzAppConfigurationSnapshot -Endpoint -InputObject + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + -Entity [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update the state of a key-value snapshot. + +## EXAMPLES + +### Example 1: Archive a snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "archived" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot archived key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Archive a snapshot by updating its status to "archived". + +### Example 2: Recover an archived snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "ready" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Recover an archived snapshot by updating its status back to "ready". + +## PARAMETERS + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Entity +Parameters used to update a snapshot. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshotUpdateParameters +Parameter Sets: Update, UpdateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to update. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath, Update +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +The desired status of the snapshot. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshotUpdateParameters + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## NOTES + +## RELATED LINKS diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationOperationDetail.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationOperationDetail.md new file mode 100644 index 000000000000..bc66a93f0def --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationOperationDetail.md @@ -0,0 +1,112 @@ +--- +external help file: +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationoperationdetail +schema: 2.0.0 +--- + +# Get-AzAppConfigurationOperationDetail + +## SYNOPSIS +Gets the state of a long running operation. + +## SYNTAX + +``` +Get-AzAppConfigurationOperationDetail -Endpoint -Snapshot [-ClientRequestId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the state of a long running operation. + +## EXAMPLES + +### Example 1: Get the status of a snapshot creation operation +```powershell +Get-AzAppConfigurationOperationDetail -Endpoint $endpoint -Snapshot "mySnapshot" +``` + +```output +Id : xxxx +Status : Succeeded +``` + +Get the state of a long running operation for a snapshot creation. + +## PARAMETERS + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Snapshot +Snapshot identifier for the long running operation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IOperationDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..fd210ef07579 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md @@ -0,0 +1,251 @@ +--- +external help file: +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Get-AzAppConfigurationSnapshot + +## SYNOPSIS +Gets a list of key-value snapshots. + +## SYNTAX + +### Get (Default) +``` +Get-AzAppConfigurationSnapshot -Endpoint [-Name ] [-After ] [-Select >] + [-Status >] [-SyncToken ] [-DefaultProfile ] [] +``` + +### Get1 +``` +Get-AzAppConfigurationSnapshot -Endpoint -Name [-Select >] + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzAppConfigurationSnapshot -Endpoint -InputObject + [-Select >] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] + [-SyncToken ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a list of key-value snapshots. + +## EXAMPLES + +### Example 1: List all snapshots in an App Configuration store +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +List all key-value snapshots in an App Configuration store. + +### Example 2: Get a specific snapshot by name +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Get a single key-value snapshot by name from an App Configuration store. + +## PARAMETERS + +### -After +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: Get1, GetViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +A filter for the name of the returned snapshots. + +```yaml +Type: System.String +Parameter Sets: Get, Get1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Select +Used to select what fields are present in the returned resource(s). + +```yaml +Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +Used to filter returned snapshots by their status property. + +```yaml +Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## NOTES + +## RELATED LINKS + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..86e6d92cbfc3 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md @@ -0,0 +1,351 @@ +--- +external help file: +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/new-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# New-AzAppConfigurationSnapshot + +## SYNOPSIS +Create a key-value snapshot. + +## SYNTAX + +### Create (Default) +``` +New-AzAppConfigurationSnapshot -Endpoint -Name -Entity [-SyncToken ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateExpanded +``` +New-AzAppConfigurationSnapshot -Endpoint -Name -Filter + [-SyncToken ] [-CompositionType ] [-RetentionPeriod ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentity +``` +New-AzAppConfigurationSnapshot -Endpoint -InputObject + -Entity [-SyncToken ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzAppConfigurationSnapshot -Endpoint -InputObject + -Filter [-SyncToken ] [-CompositionType ] [-RetentionPeriod ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzAppConfigurationSnapshot -Endpoint -Name -JsonFilePath [-SyncToken ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzAppConfigurationSnapshot -Endpoint -Name -JsonString [-SyncToken ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a key-value snapshot. + +## EXAMPLES + +### Example 1: Create a snapshot with a key filter +```powershell +$filter = @{ Key = "app/*" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Filter $filter +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Create a key-value snapshot that captures all key-values matching the key filter "app/*". + +### Example 2: Create a snapshot with a retention period and composition type +```powershell +$filter = @{ Key = "app/*"; Label = "prod" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "prodSnapshot" -Filter $filter -CompositionType "key_label" -RetentionPeriod 7776000 +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +prodSnapshot ready key_label 7/21/2023 02:40:00 10/19/2023 02:40:00 7776000 2048 10 ghijkl +``` + +Create a snapshot with key_label composition type and a 90-day retention period, filtering by both key and label. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CompositionType +The composition type describes how the key-values within the snapshot arecomposed. +The 'key' composition type ensures there are no two key-valuescontaining the same key. +The 'key_label' composition type ensures there are notwo key-values containing the same key and label. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Entity +A snapshot is a named, immutable subset of an App Configuration store's key-values. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot +Parameter Sets: Create, CreateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Filter +A list of filters used to filter the key-values included in the snapshot. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IKeyValueFilter[] +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to create. + +```yaml +Type: System.String +Parameter Sets: Create, CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RetentionPeriod +The amount of time, in seconds, that a snapshot will remain in the archivedstate before expiring. +This property is only writable during the creation of asnapshot. +If not specified, the default lifetime of key-value revisions will beused. + +```yaml +Type: System.Int64 +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The tags of the snapshot. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: CreateExpanded, CreateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..00c64046ea20 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md @@ -0,0 +1,232 @@ +--- +external help file: +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/test-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Test-AzAppConfigurationSnapshot + +## SYNOPSIS +Requests the headers and status of the given resource. + +## SYNTAX + +### Check (Default) +``` +Test-AzAppConfigurationSnapshot -Endpoint [-After ] [-ClientRequestId ] + [-SyncToken ] [-DefaultProfile ] [-PassThru] [] +``` + +### Check1 +``` +Test-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [-PassThru] + [] +``` + +### CheckViaIdentity +``` +Test-AzAppConfigurationSnapshot -Endpoint -InputObject + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-PassThru] [] +``` + +## DESCRIPTION +Requests the headers and status of the given resource. + +## EXAMPLES + +### Example 1: Check if snapshots exist in an App Configuration store +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -PassThru +``` + +```output +True +``` + +Check whether any snapshots exist in the App Configuration store. Returns True if snapshots are found. + +### Example 2: Check if a specific snapshot exists +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -PassThru +``` + +```output +True +``` + +Check whether a specific snapshot exists in the App Configuration store by name. + +## PARAMETERS + +### -After +Instructs the server to return elements that appear after the element referred +to by the specified token. + +```yaml +Type: System.String +Parameter Sets: Check +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: Check1, CheckViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: Check1, CheckViaIdentity +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: CheckViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to check. + +```yaml +Type: System.String +Parameter Sets: Check1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Update-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Update-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..d6a09aa59ddd --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Update-AzAppConfigurationSnapshot.md @@ -0,0 +1,320 @@ +--- +external help file: +Module Name: Az.AppConfiguration +online version: https://learn.microsoft.com/powershell/module/az.appconfiguration/update-azappconfigurationsnapshot +schema: 2.0.0 +--- + +# Update-AzAppConfigurationSnapshot + +## SYNOPSIS +Update the state of a key-value snapshot. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name [-ClientRequestId ] + [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-Status ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### Update +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name -Entity + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentity +``` +Update-AzAppConfigurationSnapshot -Endpoint -InputObject + -Entity [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] + [-SyncToken ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAppConfigurationSnapshot -Endpoint -InputObject + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-Status ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name -JsonFilePath + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzAppConfigurationSnapshot -Endpoint -Name -JsonString + [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update the state of a key-value snapshot. + +## EXAMPLES + +### Example 1: Archive a snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "archived" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot archived key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Archive a snapshot by updating its status to "archived". + +### Example 2: Recover an archived snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "ready" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Recover an archived snapshot by updating its status back to "ready". + +## PARAMETERS + +### -ClientRequestId +An opaque, globally-unique, client-generated string identifier for the request. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The endpoint of the App Configuration instance to send requests to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Entity +Parameters used to update a snapshot. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshotUpdateParameters +Parameter Sets: Update, UpdateViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -IfMatch +Used to perform an operation only if the targeted resource's etag matches the +value provided. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Used to perform an operation only if the targeted resource's etag does not +match the value provided. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity +Parameter Sets: UpdateViaIdentity, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the key-value snapshot to update. + +```yaml +Type: System.String +Parameter Sets: Update, UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Status +The desired status of the snapshot. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncToken +Used to guarantee real-time consistency between requests. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshotUpdateParameters + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot + +## NOTES + +## RELATED LINKS + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationOperationDetail.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationOperationDetail.md new file mode 100644 index 000000000000..8a43d367ef17 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationOperationDetail.md @@ -0,0 +1,12 @@ +### Example 1: Get the status of a snapshot creation operation +```powershell +Get-AzAppConfigurationOperationDetail -Endpoint $endpoint -Snapshot "mySnapshot" +``` + +```output +Id : xxxx +Status : Succeeded +``` + +Get the state of a long running operation for a snapshot creation. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..fa437a75dc85 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationSnapshot.md @@ -0,0 +1,26 @@ +### Example 1: List all snapshots in an App Configuration store +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +List all key-value snapshots in an App Configuration store. + +### Example 2: Get a specific snapshot by name +```powershell +Get-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Get a single key-value snapshot by name from an App Configuration store. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/New-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..626036c618f0 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/New-AzAppConfigurationSnapshot.md @@ -0,0 +1,28 @@ +### Example 1: Create a snapshot with a key filter +```powershell +$filter = @{ Key = "app/*" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Filter $filter +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Create a key-value snapshot that captures all key-values matching the key filter "app/*". + +### Example 2: Create a snapshot with a retention period and composition type +```powershell +$filter = @{ Key = "app/*"; Label = "prod" } +New-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "prodSnapshot" -Filter $filter -CompositionType "key_label" -RetentionPeriod 7776000 +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +prodSnapshot ready key_label 7/21/2023 02:40:00 10/19/2023 02:40:00 7776000 2048 10 ghijkl +``` + +Create a snapshot with key_label composition type and a 90-day retention period, filtering by both key and label. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Test-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Test-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..91b5c6b2ba0e --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Test-AzAppConfigurationSnapshot.md @@ -0,0 +1,22 @@ +### Example 1: Check if snapshots exist in an App Configuration store +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -PassThru +``` + +```output +True +``` + +Check whether any snapshots exist in the App Configuration store. Returns True if snapshots are found. + +### Example 2: Check if a specific snapshot exists +```powershell +Test-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -PassThru +``` + +```output +True +``` + +Check whether a specific snapshot exists in the App Configuration store by name. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Update-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Update-AzAppConfigurationSnapshot.md new file mode 100644 index 000000000000..c87283182024 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Update-AzAppConfigurationSnapshot.md @@ -0,0 +1,26 @@ +### Example 1: Archive a snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "archived" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot archived key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Archive a snapshot by updating its status to "archived". + +### Example 2: Recover an archived snapshot +```powershell +Update-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" -Status "ready" +``` + +```output +Name Status CompositionType Created Expires RetentionPeriod Size ItemsCount Etag +---- ------ --------------- ------- ------- --------------- ---- ---------- ---- +mySnapshot ready key 7/21/2023 02:40:00 3600 1024 5 abcdef +``` + +Recover an archived snapshot by updating its status back to "ready". + From 88262859c5b9fae5a29750a30cb61b4989710e37 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 10 Apr 2026 13:19:59 -0700 Subject: [PATCH 03/10] cleaning up --- src/AppConfiguration/AppConfiguration.sln | 28 +++++++-------- .../Clear-AzAppConfigurationDeletedStore.md | 36 +++++++++++++------ .../help/New-AzAppConfigurationStore.md | 2 +- .../help/Test-AzAppConfigurationSnapshot.md | 3 +- .../help/Update-AzAppConfigurationStore.md | 2 +- .../AppConfigurationdata.Autorest/README.md | 6 ++++ .../docs/Test-AzAppConfigurationSnapshot.md | 3 +- .../generate-info.json | 2 +- 8 files changed, 53 insertions(+), 29 deletions(-) diff --git a/src/AppConfiguration/AppConfiguration.sln b/src/AppConfiguration/AppConfiguration.sln index 61d92c7ea7aa..cdc25b5bda68 100644 --- a/src/AppConfiguration/AppConfiguration.sln +++ b/src/AppConfiguration/AppConfiguration.sln @@ -25,7 +25,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfiguration", "..\. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{345ED00B-6CD0-4840-8B57-AD3AD0D212BB}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -133,18 +133,18 @@ Global {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x64.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.ActiveCfg = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.Build.0 = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x64.ActiveCfg = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x64.Build.0 = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x86.ActiveCfg = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Debug|x86.Build.0 = Debug|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|Any CPU.Build.0 = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x64.ActiveCfg = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x64.Build.0 = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x86.ActiveCfg = Release|Any CPU - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB}.Release|x86.Build.0 = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x64.ActiveCfg = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x64.Build.0 = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x86.ActiveCfg = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x86.Build.0 = Debug|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|Any CPU.Build.0 = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x64.ActiveCfg = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x64.Build.0 = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x86.ActiveCfg = Release|Any CPU + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -157,6 +157,6 @@ Global {8B389447-87EC-484E-B771-5D387632713A} = {E4EA62CD-566F-439D-A591-A3969389B28E} {AFC99D4F-4983-4CC4-A284-4A763374FC3B} = {E4EA62CD-566F-439D-A591-A3969389B28E} {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709} = {0274B85D-B38C-5E54-FB34-3750CA0399A4} - {345ED00B-6CD0-4840-8B57-AD3AD0D212BB} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} + {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} EndGlobalSection EndGlobal diff --git a/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md b/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md index 2c93605e1466..5ce41e7a2b13 100644 --- a/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md +++ b/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md @@ -30,13 +30,11 @@ Permanently deletes the specified configuration store. ## EXAMPLES -### Example 1: Permanently deletes the specified configuration store. -```powershell +### EXAMPLE 1 +``` Clear-AzAppConfigurationDeletedStore -Location eastus -Name azpstestappstore ``` -Permanently deletes the specified configuration store. - ## PARAMETERS ### -AsJob @@ -49,7 +47,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -125,7 +123,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -140,7 +138,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -155,7 +153,7 @@ Aliases: Required: False Position: Named -Default value: (Get-AzContext).Subscription.Id +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -197,11 +195,29 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS ### Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity - ## OUTPUTS ### System.Boolean - ## NOTES +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. +For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT \: Identity Parameter + \[ConfigStoreName \\]: The name of the configuration store. + \[GroupName \\]: The name of the private link resource group. + \[Id \\]: Resource identity path + \[KeyValueName \\]: Identifier of key and label combination. +Key and label are joined by $ character. +Label is optional. + \[Location \\]: The location in which uniqueness will be verified. + \[PrivateEndpointConnectionName \\]: Private endpoint connection name + \[ReplicaName \\]: The name of the replica. + \[ResourceGroupName \\]: The name of the resource group to which the container registry belongs. + \[SnapshotName \\]: The name of the snapshot. + \[SubscriptionId \\]: The Microsoft Azure subscription ID. ## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.appconfiguration/clear-azappconfigurationdeletedstore](https://learn.microsoft.com/powershell/module/az.appconfiguration/clear-azappconfigurationdeletedstore) diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md index 05809bfb232d..cc0c7aad4d01 100644 --- a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md @@ -150,7 +150,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md index 46e2164d84c8..b62fea2be1df 100644 --- a/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfiguration/help/Test-AzAppConfigurationSnapshot.md @@ -47,7 +47,8 @@ Test-AzAppConfigurationSnapshot -Endpoint $endpoint -PassThru True ``` -Check whether any snapshots exist in the App Configuration store. Returns True if snapshots are found. +Check whether any snapshots exist in the App Configuration store. +Returns True if snapshots are found. ### Example 2: Check if a specific snapshot exists ```powershell diff --git a/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md index ed3689742cc2..70c9d2d98dda 100644 --- a/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md +++ b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md @@ -127,7 +127,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md index 0c13b4406f7e..a8908fb618e5 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md @@ -91,4 +91,10 @@ directive: variant: ^Put$ verb: Set remove: true + + # Improve the Endpoint parameter description for all cmdlets + - where: + parameter-name: Endpoint + set: + parameter-description: The endpoint of the App Configuration instance to send requests to. ``` diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md index 00c64046ea20..973678d027aa 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Test-AzAppConfigurationSnapshot.md @@ -46,7 +46,8 @@ Test-AzAppConfigurationSnapshot -Endpoint $endpoint -PassThru True ``` -Check whether any snapshots exist in the App Configuration store. Returns True if snapshots are found. +Check whether any snapshots exist in the App Configuration store. +Returns True if snapshots are found. ### Example 2: Check if a specific snapshot exists ```powershell diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json index 2c91f373516c..3fda3a1d5613 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "8b02bfc7-a854-4b5b-96ed-eaf89ba0f5ae" + "generate_Id": "3cda547f-735a-4d94-b20c-fe4a8723d8d9" } From 74f0984f1e2d02e3d49a940f2cdca767e00abeac Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 10 Apr 2026 14:30:18 -0700 Subject: [PATCH 04/10] Adding tests --- src/AppConfiguration/AppConfiguration.sln | 28 +- .../help/New-AzAppConfigurationSnapshot.md | 2 +- .../AppConfigurationdata.Autorest/README.md | 21 ++ .../docs/New-AzAppConfigurationSnapshot.md | 2 +- .../generate-info.json | 2 +- .../AzAppConfigurationKeyValue.Recording.json | 187 ++++++++++ .../test/AzAppConfigurationKeyValue.Tests.ps1 | 12 +- .../AzAppConfigurationLock.Recording.json | 156 ++++++++ .../test/AzAppConfigurationLock.Tests.ps1 | 4 +- .../Get-AzAppConfigurationKey.Recording.json | 39 ++ .../test/Get-AzAppConfigurationKey.Tests.ps1 | 2 +- ...-AzAppConfigurationKeyValue.Recording.json | 79 ++++ .../Get-AzAppConfigurationKeyValue.Tests.ps1 | 12 +- ...Get-AzAppConfigurationLabel.Recording.json | 39 ++ .../Get-AzAppConfigurationLabel.Tests.ps1 | 2 +- ...onfigurationOperationDetail.Recording.json | 153 ++++++++ ...zAppConfigurationOperationDetail.Tests.ps1 | 10 +- ...-AzAppConfigurationRevision.Recording.json | 41 +++ .../Get-AzAppConfigurationRevision.Tests.ps1 | 2 +- ...-AzAppConfigurationSnapshot.Recording.json | 190 ++++++++++ .../Get-AzAppConfigurationSnapshot.Tests.ps1 | 21 +- ...-AzAppConfigurationSnapshot.Recording.json | 230 ++++++++++++ .../New-AzAppConfigurationSnapshot.Tests.ps1 | 32 +- ...-AzAppConfigurationKeyValue.Recording.json | 112 ++++++ ...emove-AzAppConfigurationKeyValue.Tests.ps1 | 15 +- ...move-AzAppConfigurationLock.Recording.json | 154 ++++++++ .../Remove-AzAppConfigurationLock.Tests.ps1 | 16 +- ...-AzAppConfigurationKeyValue.Recording.json | 150 ++++++++ .../Set-AzAppConfigurationKeyValue.Tests.ps1 | 24 +- .../Set-AzAppConfigurationLock.Recording.json | 154 ++++++++ .../test/Set-AzAppConfigurationLock.Tests.ps1 | 12 +- ...-AzAppConfigurationKeyValue.Recording.json | 149 ++++++++ .../Test-AzAppConfigurationKeyValue.Tests.ps1 | 14 +- ...-AzAppConfigurationSnapshot.Recording.json | 191 ++++++++++ .../Test-AzAppConfigurationSnapshot.Tests.ps1 | 19 +- ...-AzAppConfigurationSnapshot.Recording.json | 338 ++++++++++++++++++ ...pdate-AzAppConfigurationSnapshot.Tests.ps1 | 37 +- .../test/env.json | 10 + .../test/utils.ps1 | 49 ++- 39 files changed, 2589 insertions(+), 121 deletions(-) create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json diff --git a/src/AppConfiguration/AppConfiguration.sln b/src/AppConfiguration/AppConfiguration.sln index cdc25b5bda68..266374fdebd7 100644 --- a/src/AppConfiguration/AppConfiguration.sln +++ b/src/AppConfiguration/AppConfiguration.sln @@ -25,7 +25,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfiguration", "..\. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{6FD402E4-108C-4BA7-80AA-32B286DB959B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -133,18 +133,18 @@ Global {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x64.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.ActiveCfg = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.Build.0 = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x64.ActiveCfg = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x64.Build.0 = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x86.ActiveCfg = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Debug|x86.Build.0 = Debug|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|Any CPU.Build.0 = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x64.ActiveCfg = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x64.Build.0 = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x86.ActiveCfg = Release|Any CPU - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209}.Release|x86.Build.0 = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x64.ActiveCfg = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x64.Build.0 = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x86.ActiveCfg = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x86.Build.0 = Debug|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|Any CPU.Build.0 = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x64.ActiveCfg = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x64.Build.0 = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x86.ActiveCfg = Release|Any CPU + {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -157,6 +157,6 @@ Global {8B389447-87EC-484E-B771-5D387632713A} = {E4EA62CD-566F-439D-A591-A3969389B28E} {AFC99D4F-4983-4CC4-A284-4A763374FC3B} = {E4EA62CD-566F-439D-A591-A3969389B28E} {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709} = {0274B85D-B38C-5E54-FB34-3750CA0399A4} - {B7D69FA9-0BEF-4E61-A9F3-83C239BF1209} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} + {6FD402E4-108C-4BA7-80AA-32B286DB959B} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} EndGlobalSection EndGlobal diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md index c7d4072e6c86..e2b8e423e081 100644 --- a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md @@ -348,7 +348,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### System.Boolean +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot ## NOTES diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md index a8908fb618e5..4468bead4760 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md @@ -74,6 +74,21 @@ directive: where: $.paths["/kv"] transform: delete $.head + # Add 200 response to CreateSnapshot so the LRO final result is deserialized + # as a Snapshot instead of falling through to the default error handler. + - from: swagger-document + where: $.paths["/snapshots/{name}"].put.responses + transform: >- + $["200"] = { + "description": "The snapshot was successfully created.", + "schema": { "$ref": "#/definitions/Snapshot" }, + "headers": { + "Sync-Token": { "description": "Used to guarantee real-time consistency between requests.", "type": "string" }, + "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" }, + "Link": { "description": "Provides a link to the next page of results.", "type": "string" } + } + }; + # Hide the get operation for KeyValue because the parameter key doesn't have a consistent meaning in /kv and /kv/{key} - where: subject: ^KeyValue$ @@ -92,6 +107,12 @@ directive: verb: Set remove: true + # Remove the body 'etag' property from Snapshot to avoid CLS conflict with + # the response header 'ETag' property (they differ only in casing). + - from: swagger-document + where: $.definitions.Snapshot.properties + transform: delete $.etag + # Improve the Endpoint parameter description for all cmdlets - where: parameter-name: Endpoint diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md index 86e6d92cbfc3..84af134ecb3d 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md @@ -343,7 +343,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### System.Boolean +### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot ## NOTES diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json index 3fda3a1d5613..3c9b9fb01963 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3cda547f-735a-4d94-b20c-fe4a8723d8d9" + "generate_Id": "1636dabe-afa7-4229-a7d8-d6402426cdd4" } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json new file mode 100644 index 000000000000..d73ceeba4a3b --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json @@ -0,0 +1,187 @@ +{ + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "604df67a-ecd3-4264-9f83-dd80aefbbf0f" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzQ=;sn=83169674" ], + "x-ms-request-id": [ "dbafb011-d383-458c-8f75-06a473c27a9a" ], + "x-ms-correlation-request-id": [ "dbafb011-d383-458c-8f75-06a473c27a9a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:30 GMT" ] + }, + "Content": "{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"value2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "25" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzU=;sn=83169675" ], + "x-ms-request-id": [ "2c382c06-736f-4a5b-8f95-4d79dd7fcd7e" ], + "x-ms-correlation-request-id": [ "2c382c06-736f-4a5b-8f95-4d79dd7fcd7e" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:31 GMT" ] + }, + "Content": "{\"etag\":\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "Content": "{\"key\":\"k6i7\", \"value\":\"value3\"}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "32" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzY=;sn=83169676" ], + "x-ms-request-id": [ "faa8e2bd-45b8-498f-b40e-009f7aeedc87" ], + "x-ms-correlation-request-id": [ "faa8e2bd-45b8-498f-b40e-009f7aeedc87" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:31 GMT" ] + }, + "Content": "{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationKeyValue+[NoContext]+List+$GET+https://sanitized.azconfig.io/kv?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "40dcc63b-c209-4231-997e-eaf61457700d" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzc=;sn=83169677" ], + "x-ms-request-id": [ "8ede93e8-d8cc-4ced-8662-79207a96c135" ], + "x-ms-correlation-request-id": [ "8ede93e8-d8cc-4ced-8662-79207a96c135" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] + }, + "Content": "{\"etag\":\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\",\"items\":[{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationKeyValue+[NoContext]+List returns all paged results+$GET+https://sanitized.azconfig.io/kv?api-version=2024-09-01\u0026key=%2A+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv?api-version=2024-09-01\u0026key=%2A", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "c656a145-6d2a-4a93-9ff4-e153aadc85ab" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzc=;sn=83169677" ], + "x-ms-request-id": [ "6ffd2686-9a55-4ead-827c-9eeaa2cd9d8d" ], + "x-ms-correlation-request-id": [ "6ffd2686-9a55-4ead-827c-9eeaa2cd9d8d" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] + }, + "Content": "{\"etag\":\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\",\"items\":[{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Tests.ps1 index d8f133305a2c..25c89404ec6b 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Tests.ps1 @@ -5,7 +5,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationKeyValu $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzAppConfigurationKeyValue.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'AzAppConfigurationKeyValue.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,12 +14,12 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationKeyValu . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzAppConfigurationKeyValue' -Tag 'LiveOnly' { +Describe 'Get-AzAppConfigurationKeyValue' { It 'Get' { { - Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key + Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key -Label "test" Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key -Value "value2" - Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key -JsonString "{`"key`":`"$key`", `"value`":`"value3`"}" + Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key -JsonString "{`"key`":`"$($env.key)`", `"value`":`"value3`"}" } | Should -Not -Throw } @@ -30,7 +30,7 @@ Describe 'Get-AzAppConfigurationKeyValue' -Tag 'LiveOnly' { } It 'List returns all paged results' { - $allResults = Get-AzAppConfigurationKeyValue -Endpoint $env:endpoint -Key '*' - $allResults.Count | Should -BeGreaterThan 100 + $allResults = Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key '*' + $allResults.Count | Should -BeGreaterOrEqual 1 } } \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json new file mode 100644 index 000000000000..8878279780ac --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json @@ -0,0 +1,156 @@ +{ + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$PUT+https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "369cddf8-c9d8-4469-8207-628d93353ba6" ], + "CommandName": [ "Set-AzAppConfigurationLock" ], + "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzg=;sn=83169678" ], + "x-ms-request-id": [ "e3d6dd7f-e506-4c4e-8430-189b211b8490" ], + "x-ms-correlation-request-id": [ "e3d6dd7f-e506-4c4e-8430-189b211b8490" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:33 GMT" ] + }, + "Content": "{\"etag\":\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:24:33+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "fa11e854-eda7-410d-8ebf-2b98aee87117" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 409, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzk=;sn=83169679" ], + "x-ms-request-id": [ "8516d7b2-37ef-4b33-9f92-85ec3935feaa" ], + "x-ms-correlation-request-id": [ "8516d7b2-37ef-4b33-9f92-85ec3935feaa" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/problem+json; charset=utf-8" ] + }, + "Content": "{\"type\":\"https://azconfig.io/errors/key-locked\",\"title\":\"Modifing key \u0027k6i7\u0027 is not allowed\",\"name\":\"k6i7\",\"detail\":\"The key is read-only. To allow modification unlock it first.\",\"status\":409}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "44dd526b-6840-4910-91e9-144066991a3d" ], + "CommandName": [ "Remove-AzAppConfigurationLock" ], + "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODA=;sn=83169680" ], + "x-ms-request-id": [ "feb0ce07-a72f-4946-9ef4-22c2916bc153" ], + "x-ms-correlation-request-id": [ "feb0ce07-a72f-4946-9ef4-22c2916bc153" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:34 GMT" ] + }, + "Content": "{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "77d3c034-e864-4f28-a90b-f679efd99808" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], + "x-ms-request-id": [ "6eb0153e-7e48-45e8-b2bc-18ed23cb4639" ], + "x-ms-correlation-request-id": [ "6eb0153e-7e48-45e8-b2bc-18ed23cb4639" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:34 GMT" ] + }, + "Content": "{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Tests.ps1 index da8a8161548d..89f5df2920aa 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Tests.ps1 @@ -5,7 +5,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationLock $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzAppConfigurationLock.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'AzAppConfigurationLock.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationLock . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzAppConfigurationLock' -Tag 'LiveOnly' { +Describe 'Remove-AzAppConfigurationLock' { It 'Lock' { { Set-AzAppConfigurationLock -Endpoint $env.endpoint -Key $env.key diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json new file mode 100644 index 000000000000..059a8b9ce20d --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json @@ -0,0 +1,39 @@ +{ + "Get-AzAppConfigurationKey+[NoContext]+Get+$GET+https://sanitized.azconfig.io/keys?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/keys?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "d284dc58-5260-48aa-9381-db5c7156d142" ], + "CommandName": [ "Get-AzAppConfigurationKey" ], + "FullCommandName": [ "Get-AzAppConfigurationKey_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], + "x-ms-request-id": [ "1c380a4d-7b4d-4af1-a82e-0f39da62f2bb" ], + "x-ms-correlation-request-id": [ "1c380a4d-7b4d-4af1-a82e-0f39da62f2bb" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.keyset+json; charset=utf-8" ] + }, + "Content": "{\"items\":[{\"name\":\"k6i7\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Tests.ps1 index 259e9fee01b7..3eac9e09e152 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationKey')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzAppConfigurationKey' -Tag 'LiveOnly' { +Describe 'Get-AzAppConfigurationKey' { It 'Get' { { Get-AzAppConfigurationKey -Endpoint $env.endpoint diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json new file mode 100644 index 000000000000..8848b9df1893 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json @@ -0,0 +1,79 @@ +{ + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "4b1d4799-705b-4bbb-ad87-850c699602f4" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], + "x-ms-request-id": [ "47956050-58c5-45c5-9045-17f72e30fe57" ], + "x-ms-correlation-request-id": [ "47956050-58c5-45c5-9045-17f72e30fe57" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:30 GMT" ] + }, + "Content": "{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationKeyValue+[NoContext]+List+$GET+https://sanitized.azconfig.io/kv?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "be10ff3f-f06e-4627-bb82-51d33557cddd" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"y3BoBUCLvYnlvUGE8i95ni7xciepeDLGXI8u9NGIyU8\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], + "x-ms-request-id": [ "e7fe4f8a-0ec3-489d-b96b-466564aff27f" ], + "x-ms-correlation-request-id": [ "e7fe4f8a-0ec3-489d-b96b-466564aff27f" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] + }, + "Content": "{\"etag\":\"y3BoBUCLvYnlvUGE8i95ni7xciepeDLGXI8u9NGIyU8\",\"items\":[{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Tests.ps1 index 2e71b81e9e9f..1ee7742b695d 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Tests.ps1 @@ -15,11 +15,15 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationKeyValu } Describe 'Get-AzAppConfigurationKeyValue' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + $result = Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $env.key -Label "test" + $result | Should -Not -BeNullOrEmpty + $result.Key | Should -Be $env.key } - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + $results = Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint + $results | Should -Not -BeNullOrEmpty + $results.Count | Should -BeGreaterOrEqual 1 } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json new file mode 100644 index 000000000000..5fe0c7e3a5dc --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json @@ -0,0 +1,39 @@ +{ + "Get-AzAppConfigurationLabel+[NoContext]+Get+$GET+https://sanitized.azconfig.io/labels?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/labels?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "c8ab1ae7-c9b9-40fc-a172-d531d8df4838" ], + "CommandName": [ "Get-AzAppConfigurationLabel" ], + "FullCommandName": [ "Get-AzAppConfigurationLabel_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:36 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], + "x-ms-request-id": [ "77bb75c7-f7d8-4c01-bf39-e3f42b3df60d" ], + "x-ms-correlation-request-id": [ "77bb75c7-f7d8-4c01-bf39-e3f42b3df60d" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:36 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.labelset+json; charset=utf-8" ] + }, + "Content": "{\"items\":[{\"name\":\"test\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Tests.ps1 index 6e37be96be1e..7a554e2523da 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationLabel') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzAppConfigurationLabel' -Tag 'LiveOnly' { +Describe 'Get-AzAppConfigurationLabel' { It 'Get' { { Get-AzAppConfigurationLabel -Endpoint $env.endpoint diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json new file mode 100644 index 000000000000..6eeddf18a31a --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json @@ -0,0 +1,153 @@ +{ + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:24:37 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=opdetail-580gxh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODc=;sn=83169687" ], + "x-ms-request-id": [ "fafe08f5-89a6-4380-897f-0202ea2ad7eb" ], + "x-ms-correlation-request-id": [ "fafe08f5-89a6-4380-897f-0202ea2ad7eb" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:24:37 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:37 GMT" ] + }, + "Content": "{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37.034058+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "4df9f07f-b86e-400d-b659-47ba6e7676c9" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], + "x-ms-request-id": [ "4e2a34ca-e54f-4551-9e5d-985610214556" ], + "x-ms-correlation-request-id": [ "4e2a34ca-e54f-4551-9e5d-985610214556" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"4RKTsZ5w1oBIFxCLhIkWZobFgdh0lZxIn12ErIiJt94\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "4df9f07f-b86e-400d-b659-47ba6e7676c9" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\"" ], + "Link": [ "\u003c/kv?snapshot=opdetail-580gxh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], + "x-ms-request-id": [ "7a281d97-fa24-4ee2-ae7c-7621e3183325" ], + "x-ms-correlation-request-id": [ "7a281d97-fa24-4ee2-ae7c-7621e3183325" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:24:38 GMT" ] + }, + "Content": "{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-580gxh+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-580gxh", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "c0bc6fb8-b219-4833-961d-0cd9e49db080" ], + "CommandName": [ "Get-AzAppConfigurationOperationDetail" ], + "FullCommandName": [ "Get-AzAppConfigurationOperationDetail_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], + "x-ms-request-id": [ "aec50e27-3d48-444f-9374-f56567670524" ], + "x-ms-correlation-request-id": [ "aec50e27-3d48-444f-9374-f56567670524" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"4RKTsZ5w1oBIFxCLhIkWZobFgdh0lZxIn12ErIiJt94\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 index 561943188c23..e1cf7e3c71d0 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 @@ -15,7 +15,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationOperati } Describe 'Get-AzAppConfigurationOperationDetail' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Get' { + # Create a snapshot to generate a long-running operation, then query its status + $snapshotName = "opdetail-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + $result = Get-AzAppConfigurationOperationDetail -Endpoint $env.endpoint -Snapshot $snapshotName + $result | Should -Not -BeNullOrEmpty + $result.Status | Should -Be "Succeeded" } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json new file mode 100644 index 000000000000..87833069c4cc --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json @@ -0,0 +1,41 @@ +{ + "Get-AzAppConfigurationRevision+[NoContext]+Get+$GET+https://sanitized.azconfig.io/revisions?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/revisions?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "1381d59b-f7fd-4a53-b467-eebb6751b2f1" ], + "CommandName": [ "Get-AzAppConfigurationRevision" ], + "FullCommandName": [ "Get-AzAppConfigurationRevision_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:08 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Accept-Ranges": [ "items" ], + "ETag": [ "\"DFXIRAq-4OlfqXkJdNtwIAkn-6KRy8Q-etofx1DLVIY\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], + "x-ms-request-id": [ "8c055290-f18f-4c64-bfb7-53bb3f13b4f6" ], + "x-ms-correlation-request-id": [ "8c055290-f18f-4c64-bfb7-53bb3f13b4f6" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:08 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] + }, + "Content": "{\"etag\":\"DFXIRAq-4OlfqXkJdNtwIAkn-6KRy8Q-etofx1DLVIY\",\"items\":[{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"},{\"etag\":\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:24:33+00:00\"},{\"etag\":\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Tests.ps1 index 23a21ebb2cef..8b760df547f6 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationRevisio . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzAppConfigurationRevision' -Tag 'LiveOnly' { +Describe 'Get-AzAppConfigurationRevision' { It 'Get' { { Get-AzAppConfigurationRevision -Endpoint $env.endpoint diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json new file mode 100644 index 000000000000..026536edd0ab --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json @@ -0,0 +1,190 @@ +{ + "Get-AzAppConfigurationSnapshot+[NoContext]+List+$GET+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "063ab69e-e6e6-475b-b886-a06f777aab1e" ], + "CommandName": [ "Get-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], + "x-ms-request-id": [ "f2ba11e0-5b24-4c35-88c7-7390d6b95ded" ], + "x-ms-correlation-request-id": [ "f2ba11e0-5b24-4c35-88c7-7390d6b95ded" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] + }, + "Content": "{\"items\":[{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$PUT+https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODk=;sn=83169689" ], + "x-ms-request-id": [ "e76e5c2f-bb85-427b-9306-1d7c6622ccb1" ], + "x-ms-correlation-request-id": [ "e76e5c2f-bb85-427b-9306-1d7c6622ccb1" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:25:09 GMT" ] + }, + "Content": "{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09.3126388+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "59c74ae8-a78c-455e-9f96-cc8998de7010" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:41 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], + "x-ms-request-id": [ "eaeecd9a-5981-4b0a-ab18-83db083e872c" ], + "x-ms-correlation-request-id": [ "eaeecd9a-5981-4b0a-ab18-83db083e872c" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:41 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"i4vq2cszgyXDvxA8o4y4vTCVMQ0jVeiYjx-Gcb7adgw\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "59c74ae8-a78c-455e-9f96-cc8998de7010" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\"" ], + "Link": [ "\u003c/kv?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], + "x-ms-request-id": [ "6319a719-dcd9-4238-8878-3d8e31041e36" ], + "x-ms-correlation-request-id": [ "6319a719-dcd9-4238-8878-3d8e31041e36" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:25:21 GMT" ] + }, + "Content": "{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-fdeloa+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-fdeloa", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "1784cb91-981e-4086-8ceb-59741042154a" ], + "CommandName": [ "Get-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], + "x-ms-request-id": [ "56632ef5-4392-4444-996e-a590f8c7cd7c" ], + "x-ms-correlation-request-id": [ "56632ef5-4392-4444-996e-a590f8c7cd7c" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] + }, + "Content": "{\"items\":[{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 index f47e546fe553..2c87d3201bf6 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 @@ -15,15 +15,20 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationSnapsho } Describe 'Get-AzAppConfigurationSnapshot' { - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'List' { + # List all snapshots + $results = Get-AzAppConfigurationSnapshot -Endpoint $env.endpoint + $results | Should -Not -BeNullOrEmpty } - It 'Get1' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'GetByName' { + # Create a snapshot then get it by name + $snapshotName = "getsnap-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + $result = Get-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName + $result | Should -Not -BeNullOrEmpty + $result.Name | Should -Be $snapshotName + $result.Status | Should -Be "ready" } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json new file mode 100644 index 000000000000..e6ec13af470e --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json @@ -0,0 +1,230 @@ +{ + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTU=;sn=83169695" ], + "x-ms-request-id": [ "db47bcfa-297e-4036-835b-4b1cc19660e0" ], + "x-ms-correlation-request-id": [ "db47bcfa-297e-4036-835b-4b1cc19660e0" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:25:42 GMT" ] + }, + "Content": "{\"etag\":\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\",\"name\":\"newsnap-8cwp65\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:42.8304559+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "3445f307-61a9-4d43-b231-63b82fdbf7f4" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDA=;sn=83169700" ], + "x-ms-request-id": [ "4238d29a-bfa3-431d-a512-9f9ac509b836" ], + "x-ms-correlation-request-id": [ "4238d29a-bfa3-431d-a512-9f9ac509b836" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"_vwnPfgLXs0FsiGbZqgzEk7uudg48MrtWlvpobwBsZU\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "3445f307-61a9-4d43-b231-63b82fdbf7f4" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\"" ], + "Link": [ "\u003c/kv?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDA=;sn=83169700" ], + "x-ms-request-id": [ "ce1b28c1-66ed-429d-95a9-48dc1048cc69" ], + "x-ms-correlation-request-id": [ "ce1b28c1-66ed-429d-95a9-48dc1048cc69" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:25:48 GMT" ] + }, + "Content": "{\"etag\":\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\",\"name\":\"newsnap-8cwp65\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:42+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01", + "Content": "{\"filters\": [{\"key\": \"k6i7\"}]}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "30" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDE=;sn=83169701" ], + "x-ms-request-id": [ "68ad1f6f-ffce-4823-871c-938e0e2b149a" ], + "x-ms-correlation-request-id": [ "68ad1f6f-ffce-4823-871c-938e0e2b149a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:13 GMT" ] + }, + "Content": "{\"etag\":\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\",\"name\":\"newsnap-jxa35t\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:13.6215871+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "fc0f1a15-ae17-48ac-8f88-47a67339672e" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDQ=;sn=83169704" ], + "x-ms-request-id": [ "68032308-cd53-4bb7-bae5-cb4ab11024a1" ], + "x-ms-correlation-request-id": [ "68032308-cd53-4bb7-bae5-cb4ab11024a1" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"YQEBjB_ULiM8R4xXgHx8zDzW3SGS4jTYVJwRGYIDoZo\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "fc0f1a15-ae17-48ac-8f88-47a67339672e" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\"" ], + "Link": [ "\u003c/kv?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDQ=;sn=83169704" ], + "x-ms-request-id": [ "4f1f82c7-ff20-4d92-b7dd-556fa131238f" ], + "x-ms-correlation-request-id": [ "4f1f82c7-ff20-4d92-b7dd-556fa131238f" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:20 GMT" ] + }, + "Content": "{\"etag\":\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\",\"name\":\"newsnap-jxa35t\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:13+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 index f5efdf23942a..5866efe962b4 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 @@ -15,27 +15,19 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzAppConfigurationSnapsho } Describe 'New-AzAppConfigurationSnapshot' { - It 'Create' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CreateExpanded' { + $snapshotName = "newsnap-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + $result = New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + $result | Should -Not -BeNullOrEmpty + $result.Name | Should -Be $snapshotName } - It 'CreateViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CreateViaJsonString' { + $snapshotName = "newsnap-" + (RandomString -allChars $false -len 6) + $jsonString = '{"filters": [{"key": "' + $env.key + '"}]}' + $result = New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -JsonString $jsonString + $result | Should -Not -BeNullOrEmpty + $result.Name | Should -Be $snapshotName } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json new file mode 100644 index 000000000000..e65de371aa6e --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json @@ -0,0 +1,112 @@ +{ + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"to-be-deleted\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "32" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDc=;sn=83169707" ], + "x-ms-request-id": [ "2a797f0f-4f82-449e-acb2-1831b7f06b45" ], + "x-ms-correlation-request-id": [ "2a797f0f-4f82-449e-acb2-1831b7f06b45" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:44 GMT" ] + }, + "Content": "{\"etag\":\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\",\"key\":\"deletetest-05ui61\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:44+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "ebb36fbc-9dc9-47f1-9da7-505d86c3e329" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDg=;sn=83169708" ], + "x-ms-request-id": [ "cc2919ec-584b-4699-8c35-0a4a74255b6b" ], + "x-ms-correlation-request-id": [ "cc2919ec-584b-4699-8c35-0a4a74255b6b" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:44 GMT" ] + }, + "Content": "{\"etag\":\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\",\"key\":\"deletetest-05ui61\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:44+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$GET+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "b328553f-a834-4820-a6f2-ae4d7f9ade57" ], + "CommandName": [ "Get-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDg=;sn=83169708" ], + "x-ms-request-id": [ "35f14de4-5354-4869-a28e-e2c5b3b852d4" ], + "x-ms-correlation-request-id": [ "35f14de4-5354-4869-a28e-e2c5b3b852d4" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 index 3ef922b6828e..39f692735935 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 @@ -15,11 +15,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationKeyV } Describe 'Remove-AzAppConfigurationKeyValue' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Delete' { + # Create a key-value, then delete it + $deleteKey = "deletetest-" + (RandomString -allChars $false -len 6) + Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $deleteKey -Value "to-be-deleted" + { + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $deleteKey + } | Should -Not -Throw + # Verify the key no longer exists (Get throws NotFound for deleted keys) + { Get-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $deleteKey } | Should -Throw } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json new file mode 100644 index 000000000000..dfaa8c90d787 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json @@ -0,0 +1,154 @@ +{ + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"unlock-value\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "31" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"bM9iP12bSttBMzqu4KrNmPt3HC9MEXgb0AN_fxMgm-Y\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDk=;sn=83169709" ], + "x-ms-request-id": [ "06d02198-6033-4f76-b023-8299c5d74c72" ], + "x-ms-correlation-request-id": [ "06d02198-6033-4f76-b023-8299c5d74c72" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:45 GMT" ] + }, + "Content": "{\"etag\":\"bM9iP12bSttBMzqu4KrNmPt3HC9MEXgb0AN_fxMgm-Y\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:45+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "766ec0e7-2667-45b1-ad3e-e2c79ea9bb2a" ], + "CommandName": [ "Set-AzAppConfigurationLock" ], + "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"_A2KubFRZZpWcYU-5wGqfM2fiaflcCc-W9N7OY8H4BA\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTA=;sn=83169710" ], + "x-ms-request-id": [ "db7d15c2-29b1-4b63-9b68-444bb178ec6d" ], + "x-ms-correlation-request-id": [ "db7d15c2-29b1-4b63-9b68-444bb178ec6d" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:45 GMT" ] + }, + "Content": "{\"etag\":\"_A2KubFRZZpWcYU-5wGqfM2fiaflcCc-W9N7OY8H4BA\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:26:45+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "14ba2f66-abba-4723-bb67-94e62fdf4a07" ], + "CommandName": [ "Remove-AzAppConfigurationLock" ], + "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTI=;sn=83169712" ], + "x-ms-request-id": [ "268da6e1-14b6-4b40-97ae-9cd3f58fe220" ], + "x-ms-correlation-request-id": [ "268da6e1-14b6-4b40-97ae-9cd3f58fe220" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + }, + "Content": "{\"etag\":\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "4a910743-a257-4ec3-b004-21aeb6457f32" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTQ=;sn=83169714" ], + "x-ms-request-id": [ "3773c0df-76ae-413c-bd44-55506201b0d4" ], + "x-ms-correlation-request-id": [ "3773c0df-76ae-413c-bd44-55506201b0d4" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + }, + "Content": "{\"etag\":\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 index 7e760fa858ff..406aaf8bc510 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 @@ -15,11 +15,15 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationLock } Describe 'Remove-AzAppConfigurationLock' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Delete' { + # Create a dedicated key and lock it + $lockKey = "unlocktest-" + (RandomString -allChars $false -len 6) + Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey -Value "unlock-value" + Set-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey + $result = Remove-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey + $result | Should -Not -BeNullOrEmpty + $result.Locked | Should -BeFalse + # Cleanup + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json new file mode 100644 index 000000000000..8ef1d90fe340 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json @@ -0,0 +1,150 @@ +{ + "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$PUT+https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"test-value\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTU=;sn=83169715" ], + "x-ms-request-id": [ "562d6586-3b6c-43cd-8169-53296d2313ef" ], + "x-ms-correlation-request-id": [ "562d6586-3b6c-43cd-8169-53296d2313ef" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + }, + "Content": "{\"etag\":\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\",\"key\":\"settest-l0hxq5\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$DELETE+https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "3f023d68-f4e4-4a05-9fe9-9dc4499c2484" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTY=;sn=83169716" ], + "x-ms-request-id": [ "1e06e3b1-f4e7-4ec9-b5be-df64cf934c4d" ], + "x-ms-correlation-request-id": [ "1e06e3b1-f4e7-4ec9-b5be-df64cf934c4d" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + }, + "Content": "{\"etag\":\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\",\"key\":\"settest-l0hxq5\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$PUT+https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01", + "Content": "{\"key\": \"setjson-mwafp3\", \"value\": \"json-value\"}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "48" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTc=;sn=83169717" ], + "x-ms-request-id": [ "d0d3c61d-043a-4ee8-984c-14a416c5e3c7" ], + "x-ms-correlation-request-id": [ "d0d3c61d-043a-4ee8-984c-14a416c5e3c7" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + }, + "Content": "{\"etag\":\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\",\"key\":\"setjson-mwafp3\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$DELETE+https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "3ba0b25f-24d8-47a2-898f-eb68b88f4ed7" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTg=;sn=83169718" ], + "x-ms-request-id": [ "5b74349c-771d-43a1-b8e7-6b47f33e1e27" ], + "x-ms-correlation-request-id": [ "5b74349c-771d-43a1-b8e7-6b47f33e1e27" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + }, + "Content": "{\"etag\":\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\",\"key\":\"setjson-mwafp3\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 index 50f5383f5d73..ffc1e61fbb5e 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 @@ -15,15 +15,23 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzAppConfigurationKeyValu } Describe 'Set-AzAppConfigurationKeyValue' { - It 'PutExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'PutExpanded' { + $setKey = "settest-" + (RandomString -allChars $false -len 6) + $result = Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey -Value "test-value" + $result | Should -Not -BeNullOrEmpty + $result.Key | Should -Be $setKey + $result.Value | Should -Be "test-value" + # Cleanup + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey } - It 'PutViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'PutViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'PutViaJsonString' { + $setKey = "setjson-" + (RandomString -allChars $false -len 6) + $jsonString = '{"key": "' + $setKey + '", "value": "json-value"}' + $result = Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey -JsonString $jsonString + $result | Should -Not -BeNullOrEmpty + $result.Value | Should -Be "json-value" + # Cleanup + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json new file mode 100644 index 000000000000..c2444e10a203 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json @@ -0,0 +1,154 @@ +{ + "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"lock-value\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"xTsmAOPiG_c3PbqAhb63ooqNbYwjqHPipkSyctKeUdU\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTk=;sn=83169719" ], + "x-ms-request-id": [ "9bc44e11-52c1-48aa-a603-20444d295cc0" ], + "x-ms-correlation-request-id": [ "9bc44e11-52c1-48aa-a603-20444d295cc0" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + }, + "Content": "{\"etag\":\"xTsmAOPiG_c3PbqAhb63ooqNbYwjqHPipkSyctKeUdU\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "f2b2c797-f2ea-4aaa-b9b4-0d5d07d69cab" ], + "CommandName": [ "Set-AzAppConfigurationLock" ], + "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"tTVq0h-p4UT547t9xnGw8iaIyF4UcLgovgMeLonhuy4\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjA=;sn=83169720" ], + "x-ms-request-id": [ "a0fe6cbe-0fc9-4be7-8462-8f29b0c202d8" ], + "x-ms-correlation-request-id": [ "a0fe6cbe-0fc9-4be7-8462-8f29b0c202d8" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + }, + "Content": "{\"etag\":\"tTVq0h-p4UT547t9xnGw8iaIyF4UcLgovgMeLonhuy4\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "c8b59010-de9e-4ec7-983e-1dfe39db1f53" ], + "CommandName": [ "Remove-AzAppConfigurationLock" ], + "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjI=;sn=83169722" ], + "x-ms-request-id": [ "ac2405c9-4c20-48cc-9d0e-8bb06549b841" ], + "x-ms-correlation-request-id": [ "ac2405c9-4c20-48cc-9d0e-8bb06549b841" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + }, + "Content": "{\"etag\":\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "isContentBase64": false + } + }, + "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "10a2866a-78c6-4a2d-a581-c651a292af28" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjQ=;sn=83169724" ], + "x-ms-request-id": [ "2c345c06-9c1a-49f3-9b8b-ef76dcf6f266" ], + "x-ms-correlation-request-id": [ "2c345c06-9c1a-49f3-9b8b-ef76dcf6f266" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + }, + "Content": "{\"etag\":\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 index b2efb6ff4163..83b58b657361 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 @@ -15,7 +15,15 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzAppConfigurationLock')) } Describe 'Set-AzAppConfigurationLock' { - It 'Put' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Put' { + # Create a dedicated key for this test + $lockKey = "locktest-" + (RandomString -allChars $false -len 6) + Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey -Value "lock-value" + $result = Set-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey + $result | Should -Not -BeNullOrEmpty + $result.Locked | Should -BeTrue + # Unlock and cleanup + Remove-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json new file mode 100644 index 000000000000..91d2df0b5ccf --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json @@ -0,0 +1,149 @@ +{ + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$PUT+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "Content": "{\r\n \"value\": \"exists\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "25" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjU=;sn=83169725" ], + "x-ms-request-id": [ "47fdf9b1-edb5-4458-8c67-00a9eafe3e5a" ], + "x-ms-correlation-request-id": [ "47fdf9b1-edb5-4458-8c67-00a9eafe3e5a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + }, + "Content": "{\"etag\":\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\",\"key\":\"checktest-ntuwfc\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "isContentBase64": false + } + }, + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$HEAD+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+2": { + "Request": { + "Method": "HEAD", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "61d5fc44-9846-4f35-af45-ac90053fd14c" ], + "CommandName": [ "Test-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjU=;sn=83169725" ], + "x-ms-request-id": [ "f85a8007-adde-4782-8482-b58b8e5f2b18" ], + "x-ms-correlation-request-id": [ "f85a8007-adde-4782-8482-b58b8e5f2b18" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$DELETE+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "a636e00f-26cb-4215-9749-b216c942fa18" ], + "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], + "x-ms-request-id": [ "ef9ef29c-c1da-41f4-8d18-df9c167a0583" ], + "x-ms-correlation-request-id": [ "ef9ef29c-c1da-41f4-8d18-df9c167a0583" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + }, + "Content": "{\"etag\":\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\",\"key\":\"checktest-ntuwfc\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "isContentBase64": false + } + }, + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckNonExisting+$HEAD+https://sanitized.azconfig.io/kv/nonexistent-key-8nrwsjcvx6?api-version=2024-09-01+1": { + "Request": { + "Method": "HEAD", + "RequestUri": "https://sanitized.azconfig.io/kv/nonexistent-key-8nrwsjcvx6?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "d614274b-b44c-4d38-8e5d-aa319155dcbb" ], + "CommandName": [ "Test-AzAppConfigurationKeyValue" ], + "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], + "x-ms-request-id": [ "9d841da8-c6b5-4f2e-a158-31cb88967730" ], + "x-ms-correlation-request-id": [ "9d841da8-c6b5-4f2e-a158-31cb88967730" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 index 8c6fc74292e8..98eb8fe5e6bf 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 @@ -15,11 +15,17 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzAppConfigurationKeyVal } Describe 'Test-AzAppConfigurationKeyValue' { - It 'Check' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CheckExisting' { + # Create a dedicated key for this test + $testKey = "checktest-" + (RandomString -allChars $false -len 6) + Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $testKey -Value "exists" + { Test-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $testKey } | Should -Not -Throw + # Cleanup + Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $testKey } - It 'CheckViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CheckNonExisting' { + # Test a key-value that does not exist (HEAD returns 404 which throws) + { Test-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key "nonexistent-key-$(RandomString -allChars $false -len 10)" } | Should -Throw } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json new file mode 100644 index 000000000000..5a3678578bb4 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json @@ -0,0 +1,191 @@ +{ + "Test-AzAppConfigurationSnapshot+[NoContext]+Check+$HEAD+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01+1": { + "Request": { + "Method": "HEAD", + "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "b256b4d4-2f5b-472c-ace7-76ccc5a314c9" ], + "CommandName": [ "Test-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], + "x-ms-request-id": [ "8ed0a7ea-38d8-426c-8728-242e06a26b79" ], + "x-ms-correlation-request-id": [ "8ed0a7ea-38d8-426c-8728-242e06a26b79" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$PUT+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:26:50 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjc=;sn=83169727" ], + "x-ms-request-id": [ "7b176b4c-8782-4061-b5fd-100165da81b0" ], + "x-ms-correlation-request-id": [ "7b176b4c-8782-4061-b5fd-100165da81b0" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:26:50 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:50 GMT" ] + }, + "Content": "{\"etag\":\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\",\"name\":\"testsnap-cxy8ru\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:50.0409272+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "848ecf8a-ec8a-4a9b-b5f3-85c43700af81" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], + "x-ms-request-id": [ "0d87a285-9e37-40e6-8d39-98cf18575c27" ], + "x-ms-correlation-request-id": [ "0d87a285-9e37-40e6-8d39-98cf18575c27" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"S-bobaBOobcTY8pRJoLtsRvxe-dwz1RM0nnerxYv54w\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "848ecf8a-ec8a-4a9b-b5f3-85c43700af81" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], + "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], + "x-ms-request-id": [ "a7dec24b-5ad9-45e3-a06b-b27bb5258223" ], + "x-ms-correlation-request-id": [ "a7dec24b-5ad9-45e3-a06b-b27bb5258223" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:59 GMT" ] + }, + "Content": "{\"etag\":\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\",\"name\":\"testsnap-cxy8ru\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:50+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$HEAD+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+4": { + "Request": { + "Method": "HEAD", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-client-request-id": [ "9ca94a90-e8aa-4060-8b6b-69e22fc5b12d" ], + "CommandName": [ "Test-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], + "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], + "x-ms-request-id": [ "acb6403f-f156-48c2-99a0-6e295bbed244" ], + "x-ms-correlation-request-id": [ "acb6403f-f156-48c2-99a0-6e295bbed244" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:26:59 GMT" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 index 327a414e3e13..bb2ea127195b 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 @@ -15,15 +15,18 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzAppConfigurationSnapsh } Describe 'Test-AzAppConfigurationSnapshot' { - It 'Check' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Check' { + # Test if any snapshots exist (HEAD on snapshots collection) + $result = Test-AzAppConfigurationSnapshot -Endpoint $env.endpoint -PassThru + $result | Should -BeTrue } - It 'Check1' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CheckViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'CheckByName' { + # Create a snapshot then test it exists + $snapshotName = "testsnap-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + $result = Test-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -PassThru + $result | Should -BeTrue } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json new file mode 100644 index 000000000000..cd638255934f --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json @@ -0,0 +1,338 @@ +{ + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:21 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjk=;sn=83169729" ], + "x-ms-request-id": [ "2a601275-f922-4c18-a661-777760caf951" ], + "x-ms-correlation-request-id": [ "2a601275-f922-4c18-a661-777760caf951" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:21 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:27:21 GMT" ] + }, + "Content": "{\"etag\":\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\",\"name\":\"updsnap-xj8gmh\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21.5198902+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "44dc1f24-8cc0-4ef0-a64f-880abf224ea9" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzA=;sn=83169730" ], + "x-ms-request-id": [ "eba90ad9-91b8-42d3-b2be-e1d77facac27" ], + "x-ms-correlation-request-id": [ "eba90ad9-91b8-42d3-b2be-e1d77facac27" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"5Tj0W7k9EUjiZMN_nE_r4ucVkbGH1bd_WOsxbxm0zc8\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "44dc1f24-8cc0-4ef0-a64f-880abf224ea9" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzA=;sn=83169730" ], + "x-ms-request-id": [ "4c4a4e9d-7e54-4bcd-80d2-b0fabd0d8fa8" ], + "x-ms-correlation-request-id": [ "4c4a4e9d-7e54-4bcd-80d2-b0fabd0d8fa8" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:27:37 GMT" ] + }, + "Content": "{\"etag\":\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\",\"name\":\"updsnap-xj8gmh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+4": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", + "Content": "{\r\n \"status\": \"archived\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "28" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"mb64hhC7ncf4wm009V8bAEr3K8PigKhlTBu2sGgJyaA\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzE=;sn=83169731" ], + "x-ms-request-id": [ "335a9cc0-e490-49de-afa2-cc823f99c355" ], + "x-ms-correlation-request-id": [ "335a9cc0-e490-49de-afa2-cc823f99c355" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:27:37 GMT" ] + }, + "Content": "{\"etag\":\"mb64hhC7ncf4wm009V8bAEr3K8PigKhlTBu2sGgJyaA\",\"name\":\"updsnap-xj8gmh\",\"status\":\"archived\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21+00:00\",\"expires\":\"2026-05-10T21:27:52.3702561+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PUT+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "60" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzI=;sn=83169732" ], + "x-ms-request-id": [ "50b5adb1-0f39-42f3-b138-6159a511752f" ], + "x-ms-correlation-request-id": [ "50b5adb1-0f39-42f3-b138-6159a511752f" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:27:52 GMT" ] + }, + "Content": "{\"etag\":\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52.5351766+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "4b078796-a2af-404a-9ddb-79db72753522" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzQ=;sn=83169734" ], + "x-ms-request-id": [ "9fd549ed-702e-496f-9a58-f02f732599f5" ], + "x-ms-correlation-request-id": [ "9fd549ed-702e-496f-9a58-f02f732599f5" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ] + }, + "Content": "{\"id\":\"_Twh6Bia4u3gPYTQ5zLQzHihbRsSQ5uDDFB-AC78cPg\",\"status\":\"Succeeded\",\"error\":null}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-client-request-id": [ "4b078796-a2af-404a-9ddb-79db72753522" ], + "CommandName": [ "New-AzAppConfigurationSnapshot" ], + "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzQ=;sn=83169734" ], + "x-ms-request-id": [ "7b2672ef-457d-41bf-b995-6b22428b1b53" ], + "x-ms-correlation-request-id": [ "7b2672ef-457d-41bf-b995-6b22428b1b53" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:28:08 GMT" ] + }, + "Content": "{\"etag\":\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+4": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "Content": "{\r\n \"status\": \"archived\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "28" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"eVJeoVjTXHsQEVF-BqO50IqkibZAEkUDewe9k5VEfjE\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzU=;sn=83169735" ], + "x-ms-request-id": [ "a8922f15-3f23-49bf-ac5f-7ec3955328c9" ], + "x-ms-correlation-request-id": [ "a8922f15-3f23-49bf-ac5f-7ec3955328c9" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:28:08 GMT" ] + }, + "Content": "{\"etag\":\"eVJeoVjTXHsQEVF-BqO50IqkibZAEkUDewe9k5VEfjE\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"archived\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"expires\":\"2026-05-10T21:28:23.2758968+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + }, + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+5": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "Content": "{\r\n \"status\": \"ready\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "25" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Transfer-Encoding": [ "chunked" ], + "Connection": [ "keep-alive" ], + "ETag": [ "\"eGvr3h3v4jDMloaCfAyqE41esEz-NlvqA6iLKEaZ0lM\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzY=;sn=83169736" ], + "x-ms-request-id": [ "a2f94eb1-adc6-4196-b1e2-903928d21f18" ], + "x-ms-correlation-request-id": [ "a2f94eb1-adc6-4196-b1e2-903928d21f18" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Fri, 10 Apr 2026 21:28:23 GMT" ] + }, + "Content": "{\"etag\":\"eGvr3h3v4jDMloaCfAyqE41esEz-NlvqA6iLKEaZ0lM\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 index 12aba6e92e6e..607fdd1c2980 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 @@ -15,27 +15,24 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzAppConfigurationSnap } Describe 'Update-AzAppConfigurationSnapshot' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'UpdateExpanded' { + # Create a snapshot, then archive it + $snapshotName = "updsnap-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + $result = Update-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Status "archived" + $result | Should -Not -BeNullOrEmpty + $result.Status | Should -Be "archived" } - It 'UpdateViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Update' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'ArchiveAndRecover' { + # Create, archive, then recover a snapshot + $snapshotName = "updsnap2-" + (RandomString -allChars $false -len 6) + $filter = @{ Key = $env.key } + New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter + Update-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Status "archived" + $result = Update-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Status "ready" + $result | Should -Not -BeNullOrEmpty + $result.Status | Should -Be "ready" } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json new file mode 100644 index 000000000000..759e54b4b492 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json @@ -0,0 +1,10 @@ +{ + "endpoint": "https://sanitized.azconfig.io", + "appStoreName2": "azspgd", + "resourceGroup": "azpstestgroup-fkcg8m", + "location": "eastus", + "appStoreName1": "az5thk", + "Tenant": "00000000-0000-0000-0000-000000000000", + "key": "k6i7", + "SubscriptionId": "00000000-0000-0000-0000-000000000000" +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/utils.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/utils.ps1 index f55694af1eda..6b2f5e34c278 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/utils.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/utils.ps1 @@ -58,13 +58,20 @@ function setupEnv() { $resourceGroup = "azpstestgroup-" + $str1 $env.Add("resourceGroup", $resourceGroup) New-AzResourceGroup -Name $env.resourceGroup -Location $env.location - $configurationStore = New-AzAppConfigurationStore -Name $env.appStoreName1 -ResourceGroupName $env.resourceGroup -Location $env.location - $env.Add("endpoint", $configurationStore.Endpoint) - $loginObjectId = (Get-AzContext).Account.ExtendedProperties['HomeAccountId'] - New-AzRoleAssignment -ObjectId $loginObjectId -RoleDefinitionName "App Configuration Data Owner" -Scope $configurationStore.Id + # Use Az CLI to create the App Configuration store to avoid assembly version + # conflicts between Az.AppConfiguration and Az.AppConfigurationdata modules. + $storeJson = az appconfig create --name $env.appStoreName1 --resource-group $env.resourceGroup --location $env.location --output json | ConvertFrom-Json + $endpoint = "https://$($env.appStoreName1).azconfig.io" + $env.Add("endpoint", $endpoint) + # HomeAccountId is in "objectId.tenantId" format — extract just the objectId + $homeAccountId = (Get-AzContext).Account.ExtendedProperties['HomeAccountId'] + $loginObjectId = ($homeAccountId -split '\.')[0] + New-AzRoleAssignment -ObjectId $loginObjectId -RoleDefinitionName "App Configuration Data Owner" -Scope $storeJson.id -ErrorAction SilentlyContinue + # Wait for RBAC propagation + Start-TestSleep -Seconds 30 $key = (RandomString -allChars $false -len 4) $value = (RandomString -allChars $false -len 16) - Set-AzAppConfigurationKeyValue -Endpoint $configurationStore.Endpoint -Key $key -Value $value -Label "test" + Set-AzAppConfigurationKeyValue -Endpoint $endpoint -Key $key -Value $value -Label "test" $env.Add("key", $key) # For any resources you created for test, you should add it to $env here. @@ -76,5 +83,37 @@ function setupEnv() { } function cleanupEnv() { # Clean resources you create for testing + Remove-AzResourceGroup -Name $env.resourceGroup -NoWait -ErrorAction SilentlyContinue + + # Sanitize recording files and env.json so they can be committed without PII + $subscriptionId = $env.SubscriptionId + $tenantId = $env.Tenant + $endpoint = $env.endpoint + $testDir = $PSScriptRoot + + # Sanitize all recording JSON files + Get-ChildItem -Path $testDir -Filter '*.Recording.json' | ForEach-Object { + $content = Get-Content $_.FullName -Raw + $sanitized = $content -replace [regex]::Escape($subscriptionId), '00000000-0000-0000-0000-000000000000' ` + -replace [regex]::Escape($tenantId), '00000000-0000-0000-0000-000000000000' ` + -replace [regex]::Escape($endpoint), 'https://sanitized.azconfig.io' ` + -replace '(?<=Secret=)[^\\"]+', 'SANITIZED' ` + -replace '(?<=\\"connectionString\\":\\")(Endpoint=https://[^"\\]+)(?=\\")', 'Endpoint=https://sanitized.azconfig.io;Id=XXXX;Secret=SANITIZED' ` + -replace '(?<=\\"value\\":\\")[A-Za-z0-9+/]{20,}=*(?=\\")', 'SANITIZED' ` + -replace '[a-zA-Z0-9._%+-]+@microsoft\.com', 'testuser@microsoft.com' + if ($content -ne $sanitized) { + Set-Content $_.FullName $sanitized -NoNewline + } + } + + # Sanitize env.json + $envFile = Join-Path $testDir 'env.json' + if (Test-Path $envFile) { + $envContent = Get-Content $envFile -Raw | ConvertFrom-Json + $envContent.SubscriptionId = '00000000-0000-0000-0000-000000000000' + $envContent.Tenant = '00000000-0000-0000-0000-000000000000' + $envContent.endpoint = 'https://sanitized.azconfig.io' + Set-Content $envFile -Value (ConvertTo-Json $envContent) + } } From ad0aa8416e89be7d8f73959ce9efc4db71acd4e1 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 10 Apr 2026 15:03:47 -0700 Subject: [PATCH 05/10] fixing playback --- .../AzAppConfigurationKeyValue.Recording.json | 96 ++++----- .../AzAppConfigurationLock.Recording.json | 84 ++++---- .../Get-AzAppConfigurationKey.Recording.json | 14 +- ...-AzAppConfigurationKeyValue.Recording.json | 38 ++-- ...Get-AzAppConfigurationLabel.Recording.json | 12 +- ...onfigurationOperationDetail.Recording.json | 86 ++++---- ...zAppConfigurationOperationDetail.Tests.ps1 | 2 +- ...-AzAppConfigurationRevision.Recording.json | 16 +- ...-AzAppConfigurationSnapshot.Recording.json | 100 ++++----- .../Get-AzAppConfigurationSnapshot.Tests.ps1 | 2 +- ...-AzAppConfigurationSnapshot.Recording.json | 136 ++++++------ .../New-AzAppConfigurationSnapshot.Tests.ps1 | 4 +- ...-AzAppConfigurationKeyValue.Recording.json | 58 ++--- ...emove-AzAppConfigurationKeyValue.Tests.ps1 | 2 +- ...move-AzAppConfigurationLock.Recording.json | 86 ++++---- .../Remove-AzAppConfigurationLock.Tests.ps1 | 2 +- ...-AzAppConfigurationKeyValue.Recording.json | 88 ++++---- .../Set-AzAppConfigurationKeyValue.Tests.ps1 | 4 +- .../Set-AzAppConfigurationLock.Recording.json | 86 ++++---- .../test/Set-AzAppConfigurationLock.Tests.ps1 | 2 +- ...-AzAppConfigurationKeyValue.Recording.json | 78 +++---- .../Test-AzAppConfigurationKeyValue.Tests.ps1 | 4 +- ...-AzAppConfigurationSnapshot.Recording.json | 102 ++++----- .../Test-AzAppConfigurationSnapshot.Tests.ps1 | 2 +- ...-AzAppConfigurationSnapshot.Recording.json | 202 +++++++++--------- ...pdate-AzAppConfigurationSnapshot.Tests.ps1 | 4 +- .../test/env.json | 12 +- 27 files changed, 661 insertions(+), 661 deletions(-) diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json index d73ceeba4a3b..c5729743e5c1 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test+1": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test+1": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "604df67a-ecd3-4264-9f83-dd80aefbbf0f" ], + "x-ms-client-request-id": [ "617d8717-1034-4363-b0aa-337158d8c5b4" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,29 +19,29 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzQ=;sn=83169674" ], - "x-ms-request-id": [ "dbafb011-d383-458c-8f75-06a473c27a9a" ], - "x-ms-correlation-request-id": [ "dbafb011-d383-458c-8f75-06a473c27a9a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "ETag": [ "\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzY=;sn=79468276" ], + "x-ms-request-id": [ "aaad26dc-c2a8-4a6c-bd9d-5199910bccd7" ], + "x-ms-correlation-request-id": [ "aaad26dc-c2a8-4a6c-bd9d-5199910bccd7" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:30 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:20 GMT" ] }, - "Content": "{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}", + "Content": "{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}", "isContentBase64": false } }, - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+2": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", "Content": "{\r\n \"value\": \"value2\"\r\n}", "isContentBase64": false, "Headers": { @@ -54,30 +54,30 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzU=;sn=83169675" ], - "x-ms-request-id": [ "2c382c06-736f-4a5b-8f95-4d79dd7fcd7e" ], - "x-ms-correlation-request-id": [ "2c382c06-736f-4a5b-8f95-4d79dd7fcd7e" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "ETag": [ "\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzc=;sn=79468277" ], + "x-ms-request-id": [ "a8de0714-921e-4ffa-b1be-d5dbd36aa4b9" ], + "x-ms-correlation-request-id": [ "a8de0714-921e-4ffa-b1be-d5dbd36aa4b9" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:31 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:21 GMT" ] }, - "Content": "{\"etag\":\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"}", + "Content": "{\"etag\":\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"}", "isContentBase64": false } }, - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+3": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", - "Content": "{\"key\":\"k6i7\", \"value\":\"value3\"}", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", + "Content": "{\"key\":\"ghse\", \"value\":\"value3\"}", "isContentBase64": false, "Headers": { }, @@ -89,22 +89,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2NzY=;sn=83169676" ], - "x-ms-request-id": [ "faa8e2bd-45b8-498f-b40e-009f7aeedc87" ], - "x-ms-correlation-request-id": [ "faa8e2bd-45b8-498f-b40e-009f7aeedc87" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:31 GMT" ], + "ETag": [ "\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzg=;sn=79468278" ], + "x-ms-request-id": [ "07ec611f-7e62-40f0-9cb0-e92e62f3fe69" ], + "x-ms-correlation-request-id": [ "07ec611f-7e62-40f0-9cb0-e92e62f3fe69" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:31 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:21 GMT" ] }, - "Content": "{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"}", + "Content": "{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"}", "isContentBase64": false } }, @@ -115,7 +115,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "40dcc63b-c209-4231-997e-eaf61457700d" ], + "x-ms-client-request-id": [ "40724e0a-53d1-4c5e-8453-581d039aa0bd" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -128,21 +128,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzc=;sn=83169677" ], - "x-ms-request-id": [ "8ede93e8-d8cc-4ced-8662-79207a96c135" ], - "x-ms-correlation-request-id": [ "8ede93e8-d8cc-4ced-8662-79207a96c135" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "ETag": [ "\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzk=;sn=79468279" ], + "x-ms-request-id": [ "d7d0dd3e-ddf9-417a-b999-8b4398880838" ], + "x-ms-correlation-request-id": [ "d7d0dd3e-ddf9-417a-b999-8b4398880838" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\",\"items\":[{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "Content": "{\"etag\":\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\",\"items\":[{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", "isContentBase64": false } }, @@ -153,7 +153,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "c656a145-6d2a-4a93-9ff4-e153aadc85ab" ], + "x-ms-client-request-id": [ "90ef46d0-7e36-4271-976c-9ee50d6b624d" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -166,21 +166,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzc=;sn=83169677" ], - "x-ms-request-id": [ "6ffd2686-9a55-4ead-827c-9eeaa2cd9d8d" ], - "x-ms-correlation-request-id": [ "6ffd2686-9a55-4ead-827c-9eeaa2cd9d8d" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:32 GMT" ], + "ETag": [ "\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzk=;sn=79468279" ], + "x-ms-request-id": [ "301e81b6-06db-4e63-bafd-e6abb6881014" ], + "x-ms-correlation-request-id": [ "301e81b6-06db-4e63-bafd-e6abb6881014" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"ttKiAPdJD9fU0CdV3EL7cm3OZHm9uC4-lkHDWIlggmc\",\"items\":[{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "Content": "{\"etag\":\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\",\"items\":[{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json index 8878279780ac..4b8b0b116b36 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json @@ -1,12 +1,12 @@ { - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$PUT+https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01+1": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$PUT+https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "369cddf8-c9d8-4469-8207-628d93353ba6" ], + "x-ms-client-request-id": [ "5c6f59fe-f211-422c-80c9-a57726b38e4f" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,33 +19,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzg=;sn=83169678" ], - "x-ms-request-id": [ "e3d6dd7f-e506-4c4e-8430-189b211b8490" ], - "x-ms-correlation-request-id": [ "e3d6dd7f-e506-4c4e-8430-189b211b8490" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "ETag": [ "\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODA=;sn=79468280" ], + "x-ms-request-id": [ "e4b10954-c214-4b55-ad64-1007483d96f5" ], + "x-ms-correlation-request-id": [ "e4b10954-c214-4b55-ad64-1007483d96f5" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:33 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] }, - "Content": "{\"etag\":\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:24:33+00:00\"}", + "Content": "{\"etag\":\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+2": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "fa11e854-eda7-410d-8ebf-2b98aee87117" ], + "x-ms-client-request-id": [ "a5c2eb24-d9cd-42f3-9abc-431ae74cea06" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,31 +58,31 @@ "Response": { "StatusCode": 409, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2Nzk=;sn=83169679" ], - "x-ms-request-id": [ "8516d7b2-37ef-4b33-9f92-85ec3935feaa" ], - "x-ms-correlation-request-id": [ "8516d7b2-37ef-4b33-9f92-85ec3935feaa" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:33 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODE=;sn=79468281" ], + "x-ms-request-id": [ "694412f9-6fbc-4a6a-84c2-8137685bd0e4" ], + "x-ms-correlation-request-id": [ "694412f9-6fbc-4a6a-84c2-8137685bd0e4" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/problem+json; charset=utf-8" ] }, - "Content": "{\"type\":\"https://azconfig.io/errors/key-locked\",\"title\":\"Modifing key \u0027k6i7\u0027 is not allowed\",\"name\":\"k6i7\",\"detail\":\"The key is read-only. To allow modification unlock it first.\",\"status\":409}", + "Content": "{\"type\":\"https://azconfig.io/errors/key-locked\",\"title\":\"Modifing key \u0027ghse\u0027 is not allowed\",\"name\":\"ghse\",\"detail\":\"The key is read-only. To allow modification unlock it first.\",\"status\":409}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01+3": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/locks/k6i7?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "44dd526b-6840-4910-91e9-144066991a3d" ], + "x-ms-client-request-id": [ "047f71e3-e8dd-4b99-b2a8-7d516d710f13" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -95,33 +95,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODA=;sn=83169680" ], - "x-ms-request-id": [ "feb0ce07-a72f-4946-9ef4-22c2916bc153" ], - "x-ms-correlation-request-id": [ "feb0ce07-a72f-4946-9ef4-22c2916bc153" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "ETag": [ "\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODI=;sn=79468282" ], + "x-ms-request-id": [ "3494d0e1-acd2-491f-afa5-1b46d519afd3" ], + "x-ms-correlation-request-id": [ "3494d0e1-acd2-491f-afa5-1b46d519afd3" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:34 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] }, - "Content": "{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"}", + "Content": "{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01+4": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "77d3c034-e864-4f28-a90b-f679efd99808" ], + "x-ms-client-request-id": [ "8bdb57b5-8b88-4c09-bfba-bf2ee41f4264" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -134,22 +134,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], - "x-ms-request-id": [ "6eb0153e-7e48-45e8-b2bc-18ed23cb4639" ], - "x-ms-correlation-request-id": [ "6eb0153e-7e48-45e8-b2bc-18ed23cb4639" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "ETag": [ "\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], + "x-ms-request-id": [ "a311782f-07b2-4db3-9481-056ef6d30da4" ], + "x-ms-correlation-request-id": [ "a311782f-07b2-4db3-9481-056ef6d30da4" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:34 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] }, - "Content": "{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"}", + "Content": "{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json index 059a8b9ce20d..3ef7ff15d32e 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "d284dc58-5260-48aa-9381-db5c7156d142" ], + "x-ms-client-request-id": [ "8746ade6-c885-417e-aa06-227a1cca44b9" ], "CommandName": [ "Get-AzAppConfigurationKey" ], "FullCommandName": [ "Get-AzAppConfigurationKey_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,20 +19,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:23 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], - "x-ms-request-id": [ "1c380a4d-7b4d-4af1-a82e-0f39da62f2bb" ], - "x-ms-correlation-request-id": [ "1c380a4d-7b4d-4af1-a82e-0f39da62f2bb" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:34 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], + "x-ms-request-id": [ "9f2f5d41-2d42-459a-8ef5-b0f5379c6e0e" ], + "x-ms-correlation-request-id": [ "9f2f5d41-2d42-459a-8ef5-b0f5379c6e0e" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:23 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.keyset+json; charset=utf-8" ] }, - "Content": "{\"items\":[{\"name\":\"k6i7\"}]}", + "Content": "{\"items\":[{\"name\":\"ghse\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json index 8848b9df1893..3805c42f0cef 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test+1": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test+1": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/kv/k6i7?api-version=2024-09-01\u0026label=test", + "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "4b1d4799-705b-4bbb-ad87-850c699602f4" ], + "x-ms-client-request-id": [ "03cf90fa-b367-4252-837e-15e60502b695" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,22 +19,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], - "x-ms-request-id": [ "47956050-58c5-45c5-9045-17f72e30fe57" ], - "x-ms-correlation-request-id": [ "47956050-58c5-45c5-9045-17f72e30fe57" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "ETag": [ "\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], + "x-ms-request-id": [ "c379d2e8-2f57-43ab-b0e9-71bcbcd5dffb" ], + "x-ms-correlation-request-id": [ "c379d2e8-2f57-43ab-b0e9-71bcbcd5dffb" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:30 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:20 GMT" ] }, - "Content": "{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}", + "Content": "{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}", "isContentBase64": false } }, @@ -45,7 +45,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "be10ff3f-f06e-4627-bb82-51d33557cddd" ], + "x-ms-client-request-id": [ "64342b5d-bb60-437f-89c6-3538225a7781" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,21 +58,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"y3BoBUCLvYnlvUGE8i95ni7xciepeDLGXI8u9NGIyU8\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], - "x-ms-request-id": [ "e7fe4f8a-0ec3-489d-b96b-466564aff27f" ], - "x-ms-correlation-request-id": [ "e7fe4f8a-0ec3-489d-b96b-466564aff27f" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:35 GMT" ], + "ETag": [ "\"Vhm_lDL-pseie8U_1j4xebG5OF_k4zIcnHp3KAowU6E\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], + "x-ms-request-id": [ "960c037a-0092-413a-b2bb-5f5e85d8977b" ], + "x-ms-correlation-request-id": [ "960c037a-0092-413a-b2bb-5f5e85d8977b" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"y3BoBUCLvYnlvUGE8i95ni7xciepeDLGXI8u9NGIyU8\",\"items\":[{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "Content": "{\"etag\":\"Vhm_lDL-pseie8U_1j4xebG5OF_k4zIcnHp3KAowU6E\",\"items\":[{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json index 5fe0c7e3a5dc..1a8389c29e13 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "c8ab1ae7-c9b9-40fc-a172-d531d8df4838" ], + "x-ms-client-request-id": [ "36bfa58a-80ef-4d62-842f-de49b965c4e0" ], "CommandName": [ "Get-AzAppConfigurationLabel" ], "FullCommandName": [ "Get-AzAppConfigurationLabel_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,13 +19,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:36 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODI=;sn=83169682" ], - "x-ms-request-id": [ "77bb75c7-f7d8-4c01-bf39-e3f42b3df60d" ], - "x-ms-correlation-request-id": [ "77bb75c7-f7d8-4c01-bf39-e3f42b3df60d" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:36 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], + "x-ms-request-id": [ "1cd74416-1784-4560-825d-84806c1934a4" ], + "x-ms-correlation-request-id": [ "1cd74416-1784-4560-825d-84806c1934a4" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json index 6eeddf18a31a..a18484adb937 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json @@ -1,9 +1,9 @@ { - "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01+1": { + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/snapshots/opdetail-test1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-test1?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,36 +15,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:24:37 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:25 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=opdetail-580gxh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODc=;sn=83169687" ], - "x-ms-request-id": [ "fafe08f5-89a6-4380-897f-0202ea2ad7eb" ], - "x-ms-correlation-request-id": [ "fafe08f5-89a6-4380-897f-0202ea2ad7eb" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:24:37 GMT" ], + "ETag": [ "\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=opdetail-test1\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=opdetail-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODU=;sn=79468285" ], + "x-ms-request-id": [ "2421824f-c13e-4583-8352-0f6da848ae47" ], + "x-ms-correlation-request-id": [ "2421824f-c13e-4583-8352-0f6da848ae47" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:25 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:37 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:25 GMT" ] }, - "Content": "{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37.034058+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25.425806+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01+2": { + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?snapshot=opdetail-test1\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=opdetail-580gxh\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=opdetail-test1\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4df9f07f-b86e-400d-b659-47ba6e7676c9" ], + "x-ms-client-request-id": [ "4ff22164-28d5-4e8c-a58e-86ada4fc5f22" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,32 +56,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], - "x-ms-request-id": [ "4e2a34ca-e54f-4551-9e5d-985610214556" ], - "x-ms-correlation-request-id": [ "4e2a34ca-e54f-4551-9e5d-985610214556" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], + "x-ms-request-id": [ "5d0da093-66cd-40fa-9632-f714e2b58e4c" ], + "x-ms-correlation-request-id": [ "5d0da093-66cd-40fa-9632-f714e2b58e4c" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"4RKTsZ5w1oBIFxCLhIkWZobFgdh0lZxIn12ErIiJt94\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"WH0rJFaau5qt11syhEdxip_OIuEIttn43DkRA1mq1N4\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01+3": { + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/snapshots/opdetail-test1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-580gxh?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4df9f07f-b86e-400d-b659-47ba6e7676c9" ], + "x-ms-client-request-id": [ "4ff22164-28d5-4e8c-a58e-86ada4fc5f22" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,34 +93,34 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\"" ], - "Link": [ "\u003c/kv?snapshot=opdetail-580gxh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], - "x-ms-request-id": [ "7a281d97-fa24-4ee2-ae7c-7621e3183325" ], - "x-ms-correlation-request-id": [ "7a281d97-fa24-4ee2-ae7c-7621e3183325" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "ETag": [ "\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\"" ], + "Link": [ "\u003c/kv?snapshot=opdetail-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], + "x-ms-request-id": [ "7f3fc25a-5c87-499b-a9f3-83569aa77a9f" ], + "x-ms-correlation-request-id": [ "7f3fc25a-5c87-499b-a9f3-83569aa77a9f" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:24:38 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:27 GMT" ] }, - "Content": "{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-580gxh+4": { + "Get-AzAppConfigurationOperationDetail+[NoContext]+Get+$GET+https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-test1+4": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-580gxh", + "RequestUri": "https://sanitized.azconfig.io/operations?api-version=2024-09-01\u0026snapshot=opdetail-test1", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "c0bc6fb8-b219-4833-961d-0cd9e49db080" ], + "x-ms-client-request-id": [ "b50f0600-251f-4680-98d1-b78a39288b37" ], "CommandName": [ "Get-AzAppConfigurationOperationDetail" ], "FullCommandName": [ "Get-AzAppConfigurationOperationDetail_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -133,20 +133,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], - "x-ms-request-id": [ "aec50e27-3d48-444f-9374-f56567670524" ], - "x-ms-correlation-request-id": [ "aec50e27-3d48-444f-9374-f56567670524" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:07 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], + "x-ms-request-id": [ "f8f0678c-95eb-4776-9ae5-4d2762db8a6a" ], + "x-ms-correlation-request-id": [ "f8f0678c-95eb-4776-9ae5-4d2762db8a6a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"4RKTsZ5w1oBIFxCLhIkWZobFgdh0lZxIn12ErIiJt94\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"WH0rJFaau5qt11syhEdxip_OIuEIttn43DkRA1mq1N4\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 index e1cf7e3c71d0..b2306a4c71ea 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzAppConfigurationOperati Describe 'Get-AzAppConfigurationOperationDetail' { It 'Get' { # Create a snapshot to generate a long-running operation, then query its status - $snapshotName = "opdetail-" + (RandomString -allChars $false -len 6) + $snapshotName = "opdetail-test1" $filter = @{ Key = $env.key } New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter $result = Get-AzAppConfigurationOperationDetail -Endpoint $env.endpoint -Snapshot $snapshotName diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json index 87833069c4cc..275687567c0a 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "1381d59b-f7fd-4a53-b467-eebb6751b2f1" ], + "x-ms-client-request-id": [ "96e03ac4-6c0b-4fc1-bbcd-00c113be666e" ], "CommandName": [ "Get-AzAppConfigurationRevision" ], "FullCommandName": [ "Get-AzAppConfigurationRevision_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,22 +19,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:08 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], "Accept-Ranges": [ "items" ], - "ETag": [ "\"DFXIRAq-4OlfqXkJdNtwIAkn-6KRy8Q-etofx1DLVIY\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], - "x-ms-request-id": [ "8c055290-f18f-4c64-bfb7-53bb3f13b4f6" ], - "x-ms-correlation-request-id": [ "8c055290-f18f-4c64-bfb7-53bb3f13b4f6" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:08 GMT" ], + "ETag": [ "\"UAI6LLBOGZNqFHKeqEhGbF7C3kObq5wTYArR--_P2ls\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], + "x-ms-request-id": [ "73b48fd8-1a5a-4f5f-9c2f-6dad8238e47a" ], + "x-ms-correlation-request-id": [ "73b48fd8-1a5a-4f5f-9c2f-6dad8238e47a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"DFXIRAq-4OlfqXkJdNtwIAkn-6KRy8Q-etofx1DLVIY\",\"items\":[{\"etag\":\"Elf5iRUV_zYWP8y-F8kOpMjT9UL20A0a6hbLYAUtml4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:34+00:00\"},{\"etag\":\"U2y5br7ouxJXI5VK96al9raMYun5Q34Zo9_pYM2W9VU\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:24:33+00:00\"},{\"etag\":\"36wmUjT9N6aahXyglVBrwTPXnRKKU-25ZoZ6HP0-Zb4\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"AxkiWHEO4YqaZlcrrEbGbjlSTLFuwrfiDtKLqjJnoqM\",\"key\":\"k6i7\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:31+00:00\"},{\"etag\":\"SdbwI1fmeYVOW68eoYVdMX4-UipLZtigpzbEcZmtp6k\",\"key\":\"k6i7\",\"label\":\"test\",\"content_type\":null,\"value\":\"ewh6ktl841dufyza\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:24:30+00:00\"}]}", + "Content": "{\"etag\":\"UAI6LLBOGZNqFHKeqEhGbF7C3kObq5wTYArR--_P2ls\",\"items\":[{\"etag\":\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:33:22+00:00\"},{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"},{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json index 026536edd0ab..33938c776393 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "063ab69e-e6e6-475b-b886-a06f777aab1e" ], + "x-ms-client-request-id": [ "9d3ceffe-74d0-48d6-b778-f576245b58a5" ], "CommandName": [ "Get-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,28 +19,28 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODg=;sn=83169688" ], - "x-ms-request-id": [ "f2ba11e0-5b24-4c35-88c7-7390d6b95ded" ], - "x-ms-correlation-request-id": [ "f2ba11e0-5b24-4c35-88c7-7390d6b95ded" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], + "x-ms-request-id": [ "14db4285-6451-48a6-a000-68a3f858ecb1" ], + "x-ms-correlation-request-id": [ "14db4285-6451-48a6-a000-68a3f858ecb1" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] }, - "Content": "{\"items\":[{\"etag\":\"7JpsIByUMHMdr77VZKdcn6SK5vuKn97iYuOC4Vm5Umk\",\"name\":\"opdetail-580gxh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:24:37+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "Content": "{\"items\":[{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", "isContentBase64": false } }, - "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$PUT+https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01+1": { + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$PUT+https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -52,36 +52,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2ODk=;sn=83169689" ], - "x-ms-request-id": [ "e76e5c2f-bb85-427b-9306-1d7c6622ccb1" ], - "x-ms-correlation-request-id": [ "e76e5c2f-bb85-427b-9306-1d7c6622ccb1" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:09 GMT" ], + "ETag": [ "\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=getsnap-test1\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=getsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODc=;sn=79468287" ], + "x-ms-request-id": [ "46cb32ec-54ba-4988-bf41-f53f4a032e02" ], + "x-ms-correlation-request-id": [ "46cb32ec-54ba-4988-bf41-f53f4a032e02" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:25:09 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:33:57 GMT" ] }, - "Content": "{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09.3126388+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57.6144246+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01+2": { + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/operations?snapshot=getsnap-test1\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=getsnap-test1\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "59c74ae8-a78c-455e-9f96-cc8998de7010" ], + "x-ms-client-request-id": [ "45e180e6-09e8-4ba1-afb3-0abb38cfd292" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,32 +93,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:41 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], - "x-ms-request-id": [ "eaeecd9a-5981-4b0a-ab18-83db083e872c" ], - "x-ms-correlation-request-id": [ "eaeecd9a-5981-4b0a-ab18-83db083e872c" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:41 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], + "x-ms-request-id": [ "3da8b84c-d812-40e8-8af9-4fe916547944" ], + "x-ms-correlation-request-id": [ "3da8b84c-d812-40e8-8af9-4fe916547944" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"i4vq2cszgyXDvxA8o4y4vTCVMQ0jVeiYjx-Gcb7adgw\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"l876CifBMhRHxaZn4CjJVoqJ0pMivfXzshS7ZtEmo4M\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01+3": { + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-fdeloa?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "59c74ae8-a78c-455e-9f96-cc8998de7010" ], + "x-ms-client-request-id": [ "45e180e6-09e8-4ba1-afb3-0abb38cfd292" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -130,34 +130,34 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\"" ], - "Link": [ "\u003c/kv?snapshot=getsnap-fdeloa\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], - "x-ms-request-id": [ "6319a719-dcd9-4238-8878-3d8e31041e36" ], - "x-ms-correlation-request-id": [ "6319a719-dcd9-4238-8878-3d8e31041e36" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "ETag": [ "\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\"" ], + "Link": [ "\u003c/kv?snapshot=getsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], + "x-ms-request-id": [ "7ce10201-db02-4630-b604-344d8faed535" ], + "x-ms-correlation-request-id": [ "7ce10201-db02-4630-b604-344d8faed535" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:25:21 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:34:08 GMT" ] }, - "Content": "{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-fdeloa+4": { + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-test1+4": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-fdeloa", + "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-test1", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "1784cb91-981e-4086-8ceb-59741042154a" ], + "x-ms-client-request-id": [ "6c656883-7844-40b4-9805-3930884b8f43" ], "CommandName": [ "Get-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -170,20 +170,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTQ=;sn=83169694" ], - "x-ms-request-id": [ "56632ef5-4392-4444-996e-a590f8c7cd7c" ], - "x-ms-correlation-request-id": [ "56632ef5-4392-4444-996e-a590f8c7cd7c" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], + "x-ms-request-id": [ "0bb1d577-122f-46db-95ad-980fd46bc4a9" ], + "x-ms-correlation-request-id": [ "0bb1d577-122f-46db-95ad-980fd46bc4a9" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] }, - "Content": "{\"items\":[{\"etag\":\"YC7jsVplomxpYDq_I4ftR14n1ZjHMTOCxmUmaGslVgg\",\"name\":\"getsnap-fdeloa\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:09+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "Content": "{\"items\":[{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 index 2c87d3201bf6..462bc0cdb38b 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Tests.ps1 @@ -23,7 +23,7 @@ Describe 'Get-AzAppConfigurationSnapshot' { It 'GetByName' { # Create a snapshot then get it by name - $snapshotName = "getsnap-" + (RandomString -allChars $false -len 6) + $snapshotName = "getsnap-test1" $filter = @{ Key = $env.key } New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter $result = Get-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json index e6ec13af470e..05f30e3251c0 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json @@ -1,9 +1,9 @@ { - "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01+1": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-test1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test1?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,36 +15,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:29 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk2OTU=;sn=83169695" ], - "x-ms-request-id": [ "db47bcfa-297e-4036-835b-4b1cc19660e0" ], - "x-ms-correlation-request-id": [ "db47bcfa-297e-4036-835b-4b1cc19660e0" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:25:42 GMT" ], + "ETag": [ "\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-test1\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=newsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjA=;sn=79468320" ], + "x-ms-request-id": [ "a93ee19d-b9e4-4fd3-a8c2-68e9f7d72f3b" ], + "x-ms-correlation-request-id": [ "a93ee19d-b9e4-4fd3-a8c2-68e9f7d72f3b" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:29 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:25:42 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:34:28 GMT" ] }, - "Content": "{\"etag\":\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\",\"name\":\"newsnap-8cwp65\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:42.8304559+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\",\"name\":\"newsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:28.9979661+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01+2": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-test1\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-test1\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "3445f307-61a9-4d43-b231-63b82fdbf7f4" ], + "x-ms-client-request-id": [ "9fbf8e66-c9b1-4d58-b31e-5e35d1419fe7" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,32 +56,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDA=;sn=83169700" ], - "x-ms-request-id": [ "4238d29a-bfa3-431d-a512-9f9ac509b836" ], - "x-ms-correlation-request-id": [ "4238d29a-bfa3-431d-a512-9f9ac509b836" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjM=;sn=79468323" ], + "x-ms-request-id": [ "d43c252c-8475-496f-ae9f-fcebd9e7d581" ], + "x-ms-correlation-request-id": [ "d43c252c-8475-496f-ae9f-fcebd9e7d581" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"_vwnPfgLXs0FsiGbZqgzEk7uudg48MrtWlvpobwBsZU\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"9Tg6wCaeM1PhCDc999iWd8A_ANJ8Jgv9wAxcR2MLYIE\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01+3": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateExpanded+$GET+https://sanitized.azconfig.io/snapshots/newsnap-test1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-8cwp65?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "3445f307-61a9-4d43-b231-63b82fdbf7f4" ], + "x-ms-client-request-id": [ "9fbf8e66-c9b1-4d58-b31e-5e35d1419fe7" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,31 +93,31 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\"" ], - "Link": [ "\u003c/kv?snapshot=newsnap-8cwp65\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDA=;sn=83169700" ], - "x-ms-request-id": [ "ce1b28c1-66ed-429d-95a9-48dc1048cc69" ], - "x-ms-correlation-request-id": [ "ce1b28c1-66ed-429d-95a9-48dc1048cc69" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "ETag": [ "\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\"" ], + "Link": [ "\u003c/kv?snapshot=newsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjM=;sn=79468323" ], + "x-ms-request-id": [ "9b4112fc-4f5a-4ce4-9aa4-fa104dd37719" ], + "x-ms-correlation-request-id": [ "9b4112fc-4f5a-4ce4-9aa4-fa104dd37719" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:25:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:34:29 GMT" ] }, - "Content": "{\"etag\":\"rDstTX4AsLsuk6sn0oqgUinlYiuN0_vOwM6rspvIJA8\",\"name\":\"newsnap-8cwp65\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:25:42+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\",\"name\":\"newsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:28+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01+1": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$PUT+https://sanitized.azconfig.io/snapshots/newsnap-test2?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01", - "Content": "{\"filters\": [{\"key\": \"k6i7\"}]}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test2?api-version=2024-09-01", + "Content": "{\"filters\": [{\"key\": \"ghse\"}]}", "isContentBase64": false, "Headers": { }, @@ -129,36 +129,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDE=;sn=83169701" ], - "x-ms-request-id": [ "68ad1f6f-ffce-4823-871c-938e0e2b149a" ], - "x-ms-correlation-request-id": [ "68ad1f6f-ffce-4823-871c-938e0e2b149a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:13 GMT" ], + "ETag": [ "\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-test2\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=newsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjQ=;sn=79468324" ], + "x-ms-request-id": [ "b17b07b5-3b7c-4a37-a73d-bfdaf49edd03" ], + "x-ms-correlation-request-id": [ "b17b07b5-3b7c-4a37-a73d-bfdaf49edd03" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:13 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:34:59 GMT" ] }, - "Content": "{\"etag\":\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\",\"name\":\"newsnap-jxa35t\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:13.6215871+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\",\"name\":\"newsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:59.8984671+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01+2": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/operations?snapshot=newsnap-test2\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=newsnap-test2\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "fc0f1a15-ae17-48ac-8f88-47a67339672e" ], + "x-ms-client-request-id": [ "ea823135-659e-4fe7-9179-3a22b1775d80" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -170,32 +170,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDQ=;sn=83169704" ], - "x-ms-request-id": [ "68032308-cd53-4bb7-bae5-cb4ab11024a1" ], - "x-ms-correlation-request-id": [ "68032308-cd53-4bb7-bae5-cb4ab11024a1" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjU=;sn=79468325" ], + "x-ms-request-id": [ "9f4da21e-bd7f-45aa-b392-f3f3dc5ad0c6" ], + "x-ms-correlation-request-id": [ "9f4da21e-bd7f-45aa-b392-f3f3dc5ad0c6" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"YQEBjB_ULiM8R4xXgHx8zDzW3SGS4jTYVJwRGYIDoZo\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"lqdy3u8beUjcyseDBfZ54c9C6A3Gui00EJfktNFFxAk\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01+3": { + "New-AzAppConfigurationSnapshot+[NoContext]+CreateViaJsonString+$GET+https://sanitized.azconfig.io/snapshots/newsnap-test2?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-jxa35t?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test2?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "fc0f1a15-ae17-48ac-8f88-47a67339672e" ], + "x-ms-client-request-id": [ "ea823135-659e-4fe7-9179-3a22b1775d80" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -207,23 +207,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\"" ], - "Link": [ "\u003c/kv?snapshot=newsnap-jxa35t\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDQ=;sn=83169704" ], - "x-ms-request-id": [ "4f1f82c7-ff20-4d92-b7dd-556fa131238f" ], - "x-ms-correlation-request-id": [ "4f1f82c7-ff20-4d92-b7dd-556fa131238f" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "ETag": [ "\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\"" ], + "Link": [ "\u003c/kv?snapshot=newsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjU=;sn=79468325" ], + "x-ms-request-id": [ "f8b0269b-24a6-423b-ab6b-6031e42aa253" ], + "x-ms-correlation-request-id": [ "f8b0269b-24a6-423b-ab6b-6031e42aa253" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:20 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:01 GMT" ] }, - "Content": "{\"etag\":\"jCmiAdbPvXLcCO8RpsteRq30EUBaQ5ssmxG7MJJ15Bk\",\"name\":\"newsnap-jxa35t\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:13+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\",\"name\":\"newsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:59+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 index 5866efe962b4..8e3976d68976 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Tests.ps1 @@ -16,7 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzAppConfigurationSnapsho Describe 'New-AzAppConfigurationSnapshot' { It 'CreateExpanded' { - $snapshotName = "newsnap-" + (RandomString -allChars $false -len 6) + $snapshotName = "newsnap-test1" $filter = @{ Key = $env.key } $result = New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter $result | Should -Not -BeNullOrEmpty @@ -24,7 +24,7 @@ Describe 'New-AzAppConfigurationSnapshot' { } It 'CreateViaJsonString' { - $snapshotName = "newsnap-" + (RandomString -allChars $false -len 6) + $snapshotName = "newsnap-test2" $jsonString = '{"filters": [{"key": "' + $env.key + '"}]}' $result = New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -JsonString $jsonString $result | Should -Not -BeNullOrEmpty diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json index e65de371aa6e..764a3f29d06c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+1": { + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01", "Content": "{\r\n \"value\": \"to-be-deleted\"\r\n}", "isContentBase64": false, "Headers": { @@ -15,33 +15,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDc=;sn=83169707" ], - "x-ms-request-id": [ "2a797f0f-4f82-449e-acb2-1831b7f06b45" ], - "x-ms-correlation-request-id": [ "2a797f0f-4f82-449e-acb2-1831b7f06b45" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:44 GMT" ], + "ETag": [ "\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjY=;sn=79468326" ], + "x-ms-request-id": [ "e88df289-28df-4750-8358-df63cd1e42f8" ], + "x-ms-correlation-request-id": [ "e88df289-28df-4750-8358-df63cd1e42f8" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:44 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:31 GMT" ] }, - "Content": "{\"etag\":\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\",\"key\":\"deletetest-05ui61\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:44+00:00\"}", + "Content": "{\"etag\":\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:31+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+2": { + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "ebb36fbc-9dc9-47f1-9da7-505d86c3e329" ], + "x-ms-client-request-id": [ "56006615-2c72-4b7f-92fc-1e9eef228735" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,33 +54,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDg=;sn=83169708" ], - "x-ms-request-id": [ "cc2919ec-584b-4699-8c35-0a4a74255b6b" ], - "x-ms-correlation-request-id": [ "cc2919ec-584b-4699-8c35-0a4a74255b6b" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "ETag": [ "\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjc=;sn=79468327" ], + "x-ms-request-id": [ "863a1e16-405a-4ae3-8c6d-6b3ea05f06dd" ], + "x-ms-correlation-request-id": [ "863a1e16-405a-4ae3-8c6d-6b3ea05f06dd" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:44 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:31 GMT" ] }, - "Content": "{\"etag\":\"IBPDmhVUsK0X5Fk6_leXSXnHc5BlHGe3pZV50GdQ2eY\",\"key\":\"deletetest-05ui61\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:44+00:00\"}", + "Content": "{\"etag\":\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:31+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$GET+https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01+3": { + "Remove-AzAppConfigurationKeyValue+[NoContext]+Delete+$GET+https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-05ui61?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/deletetest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "b328553f-a834-4820-a6f2-ae4d7f9ade57" ], + "x-ms-client-request-id": [ "dd54c3ec-0d2d-4c5e-9db0-678e5fa3b280" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,12 +93,12 @@ "Response": { "StatusCode": 404, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDg=;sn=83169708" ], - "x-ms-request-id": [ "35f14de4-5354-4869-a28e-e2c5b3b852d4" ], - "x-ms-correlation-request-id": [ "35f14de4-5354-4869-a28e-e2c5b3b852d4" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjc=;sn=79468327" ], + "x-ms-request-id": [ "bd4cd5cf-f471-4c72-a88b-ef78c7004781" ], + "x-ms-correlation-request-id": [ "bd4cd5cf-f471-4c72-a88b-ef78c7004781" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 index 39f692735935..83115402e081 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationKeyV Describe 'Remove-AzAppConfigurationKeyValue' { It 'Delete' { # Create a key-value, then delete it - $deleteKey = "deletetest-" + (RandomString -allChars $false -len 6) + $deleteKey = "deletetest-key1" Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $deleteKey -Value "to-be-deleted" { Remove-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $deleteKey diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json index dfaa8c90d787..f24b5ed7357b 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01+1": { + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/kv/unlocktest-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-key1?api-version=2024-09-01", "Content": "{\r\n \"value\": \"unlock-value\"\r\n}", "isContentBase64": false, "Headers": { @@ -15,33 +15,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"bM9iP12bSttBMzqu4KrNmPt3HC9MEXgb0AN_fxMgm-Y\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MDk=;sn=83169709" ], - "x-ms-request-id": [ "06d02198-6033-4f76-b023-8299c5d74c72" ], - "x-ms-correlation-request-id": [ "06d02198-6033-4f76-b023-8299c5d74c72" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "ETag": [ "\"EtKN3uL3I8HZMfQ0LO8fOkwpADlsyAHitvSKc_BC0cw\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjg=;sn=79468328" ], + "x-ms-request-id": [ "137d4e5a-eff4-4436-adee-6f99c484aa4a" ], + "x-ms-correlation-request-id": [ "137d4e5a-eff4-4436-adee-6f99c484aa4a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:45 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] }, - "Content": "{\"etag\":\"bM9iP12bSttBMzqu4KrNmPt3HC9MEXgb0AN_fxMgm-Y\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:45+00:00\"}", + "Content": "{\"etag\":\"EtKN3uL3I8HZMfQ0LO8fOkwpADlsyAHitvSKc_BC0cw\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01+2": { + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$PUT+https://sanitized.azconfig.io/locks/unlocktest-key1?api-version=2024-09-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "766ec0e7-2667-45b1-ad3e-e2c79ea9bb2a" ], + "x-ms-client-request-id": [ "4f63bed0-3806-4b13-9f77-34ce73b21a79" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,33 +54,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"_A2KubFRZZpWcYU-5wGqfM2fiaflcCc-W9N7OY8H4BA\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTA=;sn=83169710" ], - "x-ms-request-id": [ "db7d15c2-29b1-4b63-9b68-444bb178ec6d" ], - "x-ms-correlation-request-id": [ "db7d15c2-29b1-4b63-9b68-444bb178ec6d" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:45 GMT" ], + "ETag": [ "\"7AObs7l_HlN-HZJAZ6h9EZ0cc9r-QsvRvHblLBcJCis\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjk=;sn=79468329" ], + "x-ms-request-id": [ "15e50d7b-03f0-4e02-b334-8a5648536881" ], + "x-ms-correlation-request-id": [ "15e50d7b-03f0-4e02-b334-8a5648536881" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:45 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] }, - "Content": "{\"etag\":\"_A2KubFRZZpWcYU-5wGqfM2fiaflcCc-W9N7OY8H4BA\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:26:45+00:00\"}", + "Content": "{\"etag\":\"7AObs7l_HlN-HZJAZ6h9EZ0cc9r-QsvRvHblLBcJCis\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01+3": { + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/locks/unlocktest-key1?api-version=2024-09-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-a947hx?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/unlocktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "14ba2f66-abba-4723-bb67-94e62fdf4a07" ], + "x-ms-client-request-id": [ "0f90e67e-4a82-43fb-b3ad-9b73752280e9" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,33 +93,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTI=;sn=83169712" ], - "x-ms-request-id": [ "268da6e1-14b6-4b40-97ae-9cd3f58fe220" ], - "x-ms-correlation-request-id": [ "268da6e1-14b6-4b40-97ae-9cd3f58fe220" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "ETag": [ "\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzE=;sn=79468331" ], + "x-ms-request-id": [ "80a0555b-89cf-4580-8ed8-6e74ea4cd2e3" ], + "x-ms-correlation-request-id": [ "80a0555b-89cf-4580-8ed8-6e74ea4cd2e3" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] }, - "Content": "{\"etag\":\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "Content": "{\"etag\":\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01+4": { + "Remove-AzAppConfigurationLock+[NoContext]+Delete+$DELETE+https://sanitized.azconfig.io/kv/unlocktest-key1?api-version=2024-09-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-a947hx?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/unlocktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "4a910743-a257-4ec3-b004-21aeb6457f32" ], + "x-ms-client-request-id": [ "17c546c6-823d-421e-8b20-fc05432c1750" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -132,22 +132,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTQ=;sn=83169714" ], - "x-ms-request-id": [ "3773c0df-76ae-413c-bd44-55506201b0d4" ], - "x-ms-correlation-request-id": [ "3773c0df-76ae-413c-bd44-55506201b0d4" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "ETag": [ "\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzM=;sn=79468333" ], + "x-ms-request-id": [ "96e96a09-3b18-420c-a51c-6ece6a143c5e" ], + "x-ms-correlation-request-id": [ "96e96a09-3b18-420c-a51c-6ece6a143c5e" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] }, - "Content": "{\"etag\":\"EvKdAcr94gkJGGM7MoDi7WrscZ5lRGBZCSa-shVEcSY\",\"key\":\"unlocktest-a947hx\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "Content": "{\"etag\":\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 index 406aaf8bc510..f7e4c6821989 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzAppConfigurationLock Describe 'Remove-AzAppConfigurationLock' { It 'Delete' { # Create a dedicated key and lock it - $lockKey = "unlocktest-" + (RandomString -allChars $false -len 6) + $lockKey = "unlocktest-key1" Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey -Value "unlock-value" Set-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey $result = Remove-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json index 8ef1d90fe340..5be3db25be29 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json @@ -1,8 +1,8 @@ { - "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$PUT+https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01+1": { + "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$PUT+https://sanitized.azconfig.io/kv/settest-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/settest-key1?api-version=2024-09-01", "Content": "{\r\n \"value\": \"test-value\"\r\n}", "isContentBase64": false, "Headers": { @@ -15,33 +15,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTU=;sn=83169715" ], - "x-ms-request-id": [ "562d6586-3b6c-43cd-8169-53296d2313ef" ], - "x-ms-correlation-request-id": [ "562d6586-3b6c-43cd-8169-53296d2313ef" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "ETag": [ "\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzQ=;sn=79468334" ], + "x-ms-request-id": [ "b0d0930f-5df3-4a91-a63c-9d6248b92956" ], + "x-ms-correlation-request-id": [ "b0d0930f-5df3-4a91-a63c-9d6248b92956" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] }, - "Content": "{\"etag\":\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\",\"key\":\"settest-l0hxq5\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "Content": "{\"etag\":\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$DELETE+https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01+2": { + "Set-AzAppConfigurationKeyValue+[NoContext]+PutExpanded+$DELETE+https://sanitized.azconfig.io/kv/settest-key1?api-version=2024-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/settest-l0hxq5?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/settest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "3f023d68-f4e4-4a05-9fe9-9dc4499c2484" ], + "x-ms-client-request-id": [ "13ba123b-153d-4a2c-883c-e6d795f26b98" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,68 +54,68 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTY=;sn=83169716" ], - "x-ms-request-id": [ "1e06e3b1-f4e7-4ec9-b5be-df64cf934c4d" ], - "x-ms-correlation-request-id": [ "1e06e3b1-f4e7-4ec9-b5be-df64cf934c4d" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:46 GMT" ], + "ETag": [ "\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzU=;sn=79468335" ], + "x-ms-request-id": [ "f3c4a98d-14f3-4ef9-bd3d-e1d0c33f80b6" ], + "x-ms-correlation-request-id": [ "f3c4a98d-14f3-4ef9-bd3d-e1d0c33f80b6" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:46 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] }, - "Content": "{\"etag\":\"pvv0tsoibrwmZlK66egEY-O_bq5ws0ycnwk_3cmieGk\",\"key\":\"settest-l0hxq5\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:46+00:00\"}", + "Content": "{\"etag\":\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$PUT+https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01+1": { + "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$PUT+https://sanitized.azconfig.io/kv/setjson-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01", - "Content": "{\"key\": \"setjson-mwafp3\", \"value\": \"json-value\"}", + "RequestUri": "https://sanitized.azconfig.io/kv/setjson-key1?api-version=2024-09-01", + "Content": "{\"key\": \"setjson-key1\", \"value\": \"json-value\"}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "48" ] + "Content-Length": [ "46" ] } }, "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTc=;sn=83169717" ], - "x-ms-request-id": [ "d0d3c61d-043a-4ee8-984c-14a416c5e3c7" ], - "x-ms-correlation-request-id": [ "d0d3c61d-043a-4ee8-984c-14a416c5e3c7" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "ETag": [ "\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzY=;sn=79468336" ], + "x-ms-request-id": [ "0f664815-5c4f-4fc6-9718-6bae78a44f47" ], + "x-ms-correlation-request-id": [ "0f664815-5c4f-4fc6-9718-6bae78a44f47" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] }, - "Content": "{\"etag\":\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\",\"key\":\"setjson-mwafp3\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "Content": "{\"etag\":\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$DELETE+https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01+2": { + "Set-AzAppConfigurationKeyValue+[NoContext]+PutViaJsonString+$DELETE+https://sanitized.azconfig.io/kv/setjson-key1?api-version=2024-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/setjson-mwafp3?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/setjson-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "3ba0b25f-24d8-47a2-898f-eb68b88f4ed7" ], + "x-ms-client-request-id": [ "8b41e5cb-e8ab-4183-bd9e-8b7ce80a27ce" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -128,22 +128,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTg=;sn=83169718" ], - "x-ms-request-id": [ "5b74349c-771d-43a1-b8e7-6b47f33e1e27" ], - "x-ms-correlation-request-id": [ "5b74349c-771d-43a1-b8e7-6b47f33e1e27" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "ETag": [ "\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzc=;sn=79468337" ], + "x-ms-request-id": [ "13b67c5c-a69a-49b0-a5d8-3cce21588369" ], + "x-ms-correlation-request-id": [ "13b67c5c-a69a-49b0-a5d8-3cce21588369" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] }, - "Content": "{\"etag\":\"NBcuHhTDOdRUl9L_a09lg83RzAGOQUUpnpabuJSW_rc\",\"key\":\"setjson-mwafp3\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "Content": "{\"etag\":\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 index ffc1e61fbb5e..ce973987865e 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Tests.ps1 @@ -16,7 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzAppConfigurationKeyValu Describe 'Set-AzAppConfigurationKeyValue' { It 'PutExpanded' { - $setKey = "settest-" + (RandomString -allChars $false -len 6) + $setKey = "settest-key1" $result = Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey -Value "test-value" $result | Should -Not -BeNullOrEmpty $result.Key | Should -Be $setKey @@ -26,7 +26,7 @@ Describe 'Set-AzAppConfigurationKeyValue' { } It 'PutViaJsonString' { - $setKey = "setjson-" + (RandomString -allChars $false -len 6) + $setKey = "setjson-key1" $jsonString = '{"key": "' + $setKey + '", "value": "json-value"}' $result = Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $setKey -JsonString $jsonString $result | Should -Not -BeNullOrEmpty diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json index c2444e10a203..468e64a7d61f 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json @@ -1,8 +1,8 @@ { - "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01+1": { + "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/kv/locktest-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/locktest-key1?api-version=2024-09-01", "Content": "{\r\n \"value\": \"lock-value\"\r\n}", "isContentBase64": false, "Headers": { @@ -15,33 +15,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"xTsmAOPiG_c3PbqAhb63ooqNbYwjqHPipkSyctKeUdU\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MTk=;sn=83169719" ], - "x-ms-request-id": [ "9bc44e11-52c1-48aa-a603-20444d295cc0" ], - "x-ms-correlation-request-id": [ "9bc44e11-52c1-48aa-a603-20444d295cc0" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "ETag": [ "\"wq0uSnBpuJus7CejlETaVQhK7AUmli6cTC6O2ISzc5k\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzg=;sn=79468338" ], + "x-ms-request-id": [ "211eedf0-af15-4008-b425-ee33fd9d0145" ], + "x-ms-correlation-request-id": [ "211eedf0-af15-4008-b425-ee33fd9d0145" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"xTsmAOPiG_c3PbqAhb63ooqNbYwjqHPipkSyctKeUdU\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "Content": "{\"etag\":\"wq0uSnBpuJus7CejlETaVQhK7AUmli6cTC6O2ISzc5k\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01+2": { + "Set-AzAppConfigurationLock+[NoContext]+Put+$PUT+https://sanitized.azconfig.io/locks/locktest-key1?api-version=2024-09-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/locktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "f2b2c797-f2ea-4aaa-b9b4-0d5d07d69cab" ], + "x-ms-client-request-id": [ "c1ad02e8-fd4d-4365-afd7-a07780a6ab0f" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,33 +54,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"tTVq0h-p4UT547t9xnGw8iaIyF4UcLgovgMeLonhuy4\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjA=;sn=83169720" ], - "x-ms-request-id": [ "a0fe6cbe-0fc9-4be7-8462-8f29b0c202d8" ], - "x-ms-correlation-request-id": [ "a0fe6cbe-0fc9-4be7-8462-8f29b0c202d8" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:47 GMT" ], + "ETag": [ "\"FN5iJnynlm3CLHuLyYu9-xbj250P0k0qVTMZCALfrxM\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzk=;sn=79468339" ], + "x-ms-request-id": [ "339b3308-c0bd-43a0-a9aa-aba063001845" ], + "x-ms-correlation-request-id": [ "339b3308-c0bd-43a0-a9aa-aba063001845" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:47 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"tTVq0h-p4UT547t9xnGw8iaIyF4UcLgovgMeLonhuy4\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:26:47+00:00\"}", + "Content": "{\"etag\":\"FN5iJnynlm3CLHuLyYu9-xbj250P0k0qVTMZCALfrxM\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01+3": { + "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/locks/locktest-key1?api-version=2024-09-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/locks/locktest-0pq7jt?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/locktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "c8b59010-de9e-4ec7-983e-1dfe39db1f53" ], + "x-ms-client-request-id": [ "fe70a360-13d0-453f-bea6-5253db5d7d9c" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,33 +93,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjI=;sn=83169722" ], - "x-ms-request-id": [ "ac2405c9-4c20-48cc-9d0e-8bb06549b841" ], - "x-ms-correlation-request-id": [ "ac2405c9-4c20-48cc-9d0e-8bb06549b841" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "ETag": [ "\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDE=;sn=79468341" ], + "x-ms-request-id": [ "844e9542-01dd-40cd-8472-15745ae7c92e" ], + "x-ms-correlation-request-id": [ "844e9542-01dd-40cd-8472-15745ae7c92e" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "Content": "{\"etag\":\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } }, - "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01+4": { + "Set-AzAppConfigurationLock+[NoContext]+Put+$DELETE+https://sanitized.azconfig.io/kv/locktest-key1?api-version=2024-09-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/locktest-0pq7jt?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/locktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "10a2866a-78c6-4a2d-a581-c651a292af28" ], + "x-ms-client-request-id": [ "5a8e430a-5267-4ba9-9c96-8ba33b2701e2" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -132,22 +132,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjQ=;sn=83169724" ], - "x-ms-request-id": [ "2c345c06-9c1a-49f3-9b8b-ef76dcf6f266" ], - "x-ms-correlation-request-id": [ "2c345c06-9c1a-49f3-9b8b-ef76dcf6f266" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "ETag": [ "\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDM=;sn=79468343" ], + "x-ms-request-id": [ "001c16c0-fe93-4b94-9f67-9abbe235ab78" ], + "x-ms-correlation-request-id": [ "001c16c0-fe93-4b94-9f67-9abbe235ab78" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"AjhQFQ08bDIfjuxHrg0W6EArk9Yz1e2wXellUR3Gee0\",\"key\":\"locktest-0pq7jt\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "Content": "{\"etag\":\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 index 83b58b657361..e67ab05e7f72 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Set-AzAppConfigurationLock')) Describe 'Set-AzAppConfigurationLock' { It 'Put' { # Create a dedicated key for this test - $lockKey = "locktest-" + (RandomString -allChars $false -len 6) + $lockKey = "locktest-key1" Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $lockKey -Value "lock-value" $result = Set-AzAppConfigurationLock -Endpoint $env.endpoint -Key $lockKey $result | Should -Not -BeNullOrEmpty diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json index 91d2df0b5ccf..9bb9a854ce8e 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json @@ -1,8 +1,8 @@ { - "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$PUT+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+1": { + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$PUT+https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01", "Content": "{\r\n \"value\": \"exists\"\r\n}", "isContentBase64": false, "Headers": { @@ -15,33 +15,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjU=;sn=83169725" ], - "x-ms-request-id": [ "47fdf9b1-edb5-4458-8c67-00a9eafe3e5a" ], - "x-ms-correlation-request-id": [ "47fdf9b1-edb5-4458-8c67-00a9eafe3e5a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDQ=;sn=79468344" ], + "x-ms-request-id": [ "2e5b1db7-355f-421a-afa2-e153f573202d" ], + "x-ms-correlation-request-id": [ "2e5b1db7-355f-421a-afa2-e153f573202d" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\",\"key\":\"checktest-ntuwfc\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "Content": "{\"etag\":\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } }, - "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$HEAD+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+2": { + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$HEAD+https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01+2": { "Request": { "Method": "HEAD", - "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "61d5fc44-9846-4f35-af45-ac90053fd14c" ], + "x-ms-client-request-id": [ "b5911402-a318-43e8-8976-17bb4789c756" ], "CommandName": [ "Test-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,32 +54,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjU=;sn=83169725" ], - "x-ms-request-id": [ "f85a8007-adde-4782-8482-b58b8e5f2b18" ], - "x-ms-correlation-request-id": [ "f85a8007-adde-4782-8482-b58b8e5f2b18" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:48 GMT" ], + "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDQ=;sn=79468344" ], + "x-ms-request-id": [ "1c43b5fd-0efd-4853-a936-93c580916e7b" ], + "x-ms-correlation-request-id": [ "1c43b5fd-0efd-4853-a936-93c580916e7b" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, "Content": null, "isContentBase64": false } }, - "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$DELETE+https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01+3": { + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckExisting+$DELETE+https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/checktest-ntuwfc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/checktest-key1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "a636e00f-26cb-4215-9749-b216c942fa18" ], + "x-ms-client-request-id": [ "b14ce992-fcdd-44cc-ba65-8ffcf3b33612" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -92,33 +92,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], - "x-ms-request-id": [ "ef9ef29c-c1da-41f4-8d18-df9c167a0583" ], - "x-ms-correlation-request-id": [ "ef9ef29c-c1da-41f4-8d18-df9c167a0583" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], + "x-ms-request-id": [ "b03fdfd6-ae0a-4f1b-9144-d98de48a9672" ], + "x-ms-correlation-request-id": [ "b03fdfd6-ae0a-4f1b-9144-d98de48a9672" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:48 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] }, - "Content": "{\"etag\":\"ZfIEXA6psWJ_HQNOS1Y2d0ufpuzRoZzxFe1k2jA2Nuw\",\"key\":\"checktest-ntuwfc\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:26:48+00:00\"}", + "Content": "{\"etag\":\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", "isContentBase64": false } }, - "Test-AzAppConfigurationKeyValue+[NoContext]+CheckNonExisting+$HEAD+https://sanitized.azconfig.io/kv/nonexistent-key-8nrwsjcvx6?api-version=2024-09-01+1": { + "Test-AzAppConfigurationKeyValue+[NoContext]+CheckNonExisting+$HEAD+https://sanitized.azconfig.io/kv/nonexistent-key-playback?api-version=2024-09-01+1": { "Request": { "Method": "HEAD", - "RequestUri": "https://sanitized.azconfig.io/kv/nonexistent-key-8nrwsjcvx6?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/nonexistent-key-playback?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "d614274b-b44c-4d38-8e5d-aa319155dcbb" ], + "x-ms-client-request-id": [ "568a4636-32c9-42b4-acd1-71d0bb929031" ], "CommandName": [ "Test-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -131,12 +131,12 @@ "Response": { "StatusCode": 404, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], - "x-ms-request-id": [ "9d841da8-c6b5-4f2e-a158-31cb88967730" ], - "x-ms-correlation-request-id": [ "9d841da8-c6b5-4f2e-a158-31cb88967730" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], + "x-ms-request-id": [ "ffc8b9d0-e221-43ca-b0ce-9e8fad7fbb60" ], + "x-ms-correlation-request-id": [ "ffc8b9d0-e221-43ca-b0ce-9e8fad7fbb60" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 index 98eb8fe5e6bf..65427bd24d25 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzAppConfigurationKeyVal Describe 'Test-AzAppConfigurationKeyValue' { It 'CheckExisting' { # Create a dedicated key for this test - $testKey = "checktest-" + (RandomString -allChars $false -len 6) + $testKey = "checktest-key1" Set-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $testKey -Value "exists" { Test-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key $testKey } | Should -Not -Throw # Cleanup @@ -26,6 +26,6 @@ Describe 'Test-AzAppConfigurationKeyValue' { It 'CheckNonExisting' { # Test a key-value that does not exist (HEAD returns 404 which throws) - { Test-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key "nonexistent-key-$(RandomString -allChars $false -len 10)" } | Should -Throw + { Test-AzAppConfigurationKeyValue -Endpoint $env.endpoint -Key "nonexistent-key-playback" } | Should -Throw } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json index 5a3678578bb4..e8d3d0c894d9 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "b256b4d4-2f5b-472c-ace7-76ccc5a314c9" ], + "x-ms-client-request-id": [ "1efabd10-75e1-46c1-b992-3b4757d7a910" ], "CommandName": [ "Test-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,12 +19,12 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MjY=;sn=83169726" ], - "x-ms-request-id": [ "8ed0a7ea-38d8-426c-8728-242e06a26b79" ], - "x-ms-correlation-request-id": [ "8ed0a7ea-38d8-426c-8728-242e06a26b79" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:49 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], + "x-ms-request-id": [ "c530cc5f-2bc3-4a9a-8b74-da9fc347e8d1" ], + "x-ms-correlation-request-id": [ "c530cc5f-2bc3-4a9a-8b74-da9fc347e8d1" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -35,11 +35,11 @@ "isContentBase64": false } }, - "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$PUT+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+1": { + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$PUT+https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -51,36 +51,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:26:50 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjc=;sn=83169727" ], - "x-ms-request-id": [ "7b176b4c-8782-4061-b5fd-100165da81b0" ], - "x-ms-correlation-request-id": [ "7b176b4c-8782-4061-b5fd-100165da81b0" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:26:50 GMT" ], + "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=testsnap-test1\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDY=;sn=79468346" ], + "x-ms-request-id": [ "4aff6df9-9740-411b-9e65-938468541982" ], + "x-ms-correlation-request-id": [ "4aff6df9-9740-411b-9e65-938468541982" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:50 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:36 GMT" ] }, - "Content": "{\"etag\":\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\",\"name\":\"testsnap-cxy8ru\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:50.0409272+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\",\"name\":\"testsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:35:36.1933854+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01+2": { + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/operations?snapshot=testsnap-test1\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=testsnap-test1\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "848ecf8a-ec8a-4a9b-b5f3-85c43700af81" ], + "x-ms-client-request-id": [ "455371fa-2383-4f7d-ae54-7e444f56e1cb" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -92,32 +92,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], - "x-ms-request-id": [ "0d87a285-9e37-40e6-8d39-98cf18575c27" ], - "x-ms-correlation-request-id": [ "0d87a285-9e37-40e6-8d39-98cf18575c27" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], + "x-ms-request-id": [ "749fc9f9-1007-4a8e-a4f7-e6dd707fbcbd" ], + "x-ms-correlation-request-id": [ "749fc9f9-1007-4a8e-a4f7-e6dd707fbcbd" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"S-bobaBOobcTY8pRJoLtsRvxe-dwz1RM0nnerxYv54w\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"Qc4wwiEaLS-7tsFrJ-5nOUmJmiIusC7uEB42-qR9H7w\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+3": { + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$GET+https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "848ecf8a-ec8a-4a9b-b5f3-85c43700af81" ], + "x-ms-client-request-id": [ "455371fa-2383-4f7d-ae54-7e444f56e1cb" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -129,34 +129,34 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], - "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], - "x-ms-request-id": [ "a7dec24b-5ad9-45e3-a06b-b27bb5258223" ], - "x-ms-correlation-request-id": [ "a7dec24b-5ad9-45e3-a06b-b27bb5258223" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], + "x-ms-request-id": [ "5999ae04-a1b6-486a-b9fc-8df4e8cacc2b" ], + "x-ms-correlation-request-id": [ "5999ae04-a1b6-486a-b9fc-8df4e8cacc2b" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:59 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:58 GMT" ] }, - "Content": "{\"etag\":\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\",\"name\":\"testsnap-cxy8ru\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:26:50+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\",\"name\":\"testsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:35:36+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$HEAD+https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01+4": { + "Test-AzAppConfigurationSnapshot+[NoContext]+CheckByName+$HEAD+https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01+4": { "Request": { "Method": "HEAD", - "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-cxy8ru?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "9ca94a90-e8aa-4060-8b6b-69e22fc5b12d" ], + "x-ms-client-request-id": [ "7103e7a1-925c-408c-ab84-34c6a0e2e42c" ], "CommandName": [ "Test-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -169,20 +169,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"0Nz2wYvAxzwRfrzYc2LSNDL0TMzbMlxa0zJboeK6EPA\"" ], - "Link": [ "\u003c/kv?snapshot=testsnap-cxy8ru\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjg=;sn=83169728" ], - "x-ms-request-id": [ "acb6403f-f156-48c2-99a0-6e295bbed244" ], - "x-ms-correlation-request-id": [ "acb6403f-f156-48c2-99a0-6e295bbed244" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:20 GMT" ], + "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], + "x-ms-request-id": [ "8bcab0b0-4a03-465f-ad2b-09b387e1e31c" ], + "x-ms-correlation-request-id": [ "8bcab0b0-4a03-465f-ad2b-09b387e1e31c" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:26:59 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:35:58 GMT" ] }, "Content": null, "isContentBase64": false diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 index bb2ea127195b..32b100dd3963 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Tests.ps1 @@ -23,7 +23,7 @@ Describe 'Test-AzAppConfigurationSnapshot' { It 'CheckByName' { # Create a snapshot then test it exists - $snapshotName = "testsnap-" + (RandomString -allChars $false -len 6) + $snapshotName = "testsnap-test1" $filter = @{ Key = $env.key } New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter $result = Test-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -PassThru diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json index cd638255934f..68a21a44ab01 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json @@ -1,9 +1,9 @@ { - "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+1": { + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PUT+https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,36 +15,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:21 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:07 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3Mjk=;sn=83169729" ], - "x-ms-request-id": [ "2a601275-f922-4c18-a661-777760caf951" ], - "x-ms-correlation-request-id": [ "2a601275-f922-4c18-a661-777760caf951" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:21 GMT" ], + "ETag": [ "\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-test1\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDg=;sn=79468348" ], + "x-ms-request-id": [ "f0e87580-fb9f-400c-9eec-4fe155054256" ], + "x-ms-correlation-request-id": [ "f0e87580-fb9f-400c-9eec-4fe155054256" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:07 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:27:21 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:07 GMT" ] }, - "Content": "{\"etag\":\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\",\"name\":\"updsnap-xj8gmh\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21.5198902+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\",\"name\":\"updsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07.5487102+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01+2": { + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap-test1\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap-test1\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "44dc1f24-8cc0-4ef0-a64f-880abf224ea9" ], + "x-ms-client-request-id": [ "9ec91919-d5d5-477f-ae7e-e6235381447f" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,32 +56,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzA=;sn=83169730" ], - "x-ms-request-id": [ "eba90ad9-91b8-42d3-b2be-e1d77facac27" ], - "x-ms-correlation-request-id": [ "eba90ad9-91b8-42d3-b2be-e1d77facac27" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTA=;sn=79468350" ], + "x-ms-request-id": [ "5ee579f1-76a8-40c8-b41b-a862e350c22f" ], + "x-ms-correlation-request-id": [ "5ee579f1-76a8-40c8-b41b-a862e350c22f" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"5Tj0W7k9EUjiZMN_nE_r4ucVkbGH1bd_WOsxbxm0zc8\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"gGaAuRTEFUxM7rrn2lX-KHcSNLAQoJc3vB1TNIjD8F0\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+3": { + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$GET+https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "44dc1f24-8cc0-4ef0-a64f-880abf224ea9" ], + "x-ms-client-request-id": [ "9ec91919-d5d5-477f-ae7e-e6235381447f" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,30 +93,30 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\"" ], - "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzA=;sn=83169730" ], - "x-ms-request-id": [ "4c4a4e9d-7e54-4bcd-80d2-b0fabd0d8fa8" ], - "x-ms-correlation-request-id": [ "4c4a4e9d-7e54-4bcd-80d2-b0fabd0d8fa8" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "ETag": [ "\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTA=;sn=79468350" ], + "x-ms-request-id": [ "8513c0ee-1111-4e2e-b744-dcee8ca2fcc1" ], + "x-ms-correlation-request-id": [ "8513c0ee-1111-4e2e-b744-dcee8ca2fcc1" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:27:37 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:10 GMT" ] }, - "Content": "{\"etag\":\"IPqxx51CooBVrEs_lIznzvYcXFI9Cgk3PYyjXnkCHHg\",\"name\":\"updsnap-xj8gmh\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\",\"name\":\"updsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01+4": { + "Update-AzAppConfigurationSnapshot+[NoContext]+UpdateExpanded+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01+4": { "Request": { "Method": "PATCH", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-xj8gmh?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01", "Content": "{\r\n \"status\": \"archived\"\r\n}", "isContentBase64": false, "Headers": { @@ -129,31 +129,31 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"mb64hhC7ncf4wm009V8bAEr3K8PigKhlTBu2sGgJyaA\"" ], - "Link": [ "\u003c/kv?snapshot=updsnap-xj8gmh\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzE=;sn=83169731" ], - "x-ms-request-id": [ "335a9cc0-e490-49de-afa2-cc823f99c355" ], - "x-ms-correlation-request-id": [ "335a9cc0-e490-49de-afa2-cc823f99c355" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "ETag": [ "\"3FKv2WLpwfuby5afr4XLC4G2k1HcB_lnG8YNfqyjRBk\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTE=;sn=79468351" ], + "x-ms-request-id": [ "11b5d0b5-bcb0-4092-8429-73c57a775547" ], + "x-ms-correlation-request-id": [ "11b5d0b5-bcb0-4092-8429-73c57a775547" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:27:37 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:10 GMT" ] }, - "Content": "{\"etag\":\"mb64hhC7ncf4wm009V8bAEr3K8PigKhlTBu2sGgJyaA\",\"name\":\"updsnap-xj8gmh\",\"status\":\"archived\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:21+00:00\",\"expires\":\"2026-05-10T21:27:52.3702561+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"3FKv2WLpwfuby5afr4XLC4G2k1HcB_lnG8YNfqyjRBk\",\"name\":\"updsnap-test1\",\"status\":\"archived\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07+00:00\",\"expires\":\"2026-05-10T21:36:38.2604282+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PUT+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+1": { + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PUT+https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"k6i7\"\r\n }\r\n ]\r\n}", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -165,36 +165,36 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\"" ], - "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01" ], - "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzI=;sn=83169732" ], - "x-ms-request-id": [ "50b5adb1-0f39-42f3-b138-6159a511752f" ], - "x-ms-correlation-request-id": [ "50b5adb1-0f39-42f3-b138-6159a511752f" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:27:52 GMT" ], + "ETag": [ "\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\"" ], + "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-test2\u0026api-version=2024-09-01" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTI=;sn=79468352" ], + "x-ms-request-id": [ "1bcb8337-d6fa-4dc3-ad43-5ba255c39dd7" ], + "x-ms-correlation-request-id": [ "1bcb8337-d6fa-4dc3-ad43-5ba255c39dd7" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:27:52 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:38 GMT" ] }, - "Content": "{\"etag\":\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52.5351766+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\",\"name\":\"updsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38.425713+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01+2": { + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/operations?snapshot=updsnap-test2\u0026api-version=2024-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/operations?snapshot=updsnap-test2\u0026api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4b078796-a2af-404a-9ddb-79db72753522" ], + "x-ms-client-request-id": [ "9b684df4-24d6-4deb-8adf-9649a52abe53" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -206,32 +206,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:37:08 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzQ=;sn=83169734" ], - "x-ms-request-id": [ "9fd549ed-702e-496f-9a58-f02f732599f5" ], - "x-ms-correlation-request-id": [ "9fd549ed-702e-496f-9a58-f02f732599f5" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTM=;sn=79468353" ], + "x-ms-request-id": [ "1a56d08e-3148-405c-b06b-abab53eaf9ca" ], + "x-ms-correlation-request-id": [ "1a56d08e-3148-405c-b06b-abab53eaf9ca" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:37:08 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"_Twh6Bia4u3gPYTQ5zLQzHihbRsSQ5uDDFB-AC78cPg\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"RAFaF0qH5P-gSyhPkfIK__57473L5bGlOnQ_WvzAwTA\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+3": { + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$GET+https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4b078796-a2af-404a-9ddb-79db72753522" ], + "x-ms-client-request-id": [ "9b684df4-24d6-4deb-8adf-9649a52abe53" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -243,30 +243,30 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\"" ], - "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzQ=;sn=83169734" ], - "x-ms-request-id": [ "7b2672ef-457d-41bf-b995-6b22428b1b53" ], - "x-ms-correlation-request-id": [ "7b2672ef-457d-41bf-b995-6b22428b1b53" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "ETag": [ "\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTM=;sn=79468353" ], + "x-ms-request-id": [ "e15dcd9a-8836-4bdc-bf7f-3c2463551df3" ], + "x-ms-correlation-request-id": [ "e15dcd9a-8836-4bdc-bf7f-3c2463551df3" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:28:08 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:51 GMT" ] }, - "Content": "{\"etag\":\"DQ7XXSpjMH06FmP0YoSaRCOrUxW8aDt1H-8o_R36FxY\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+4": { + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01+4": { "Request": { "Method": "PATCH", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01", "Content": "{\r\n \"status\": \"archived\"\r\n}", "isContentBase64": false, "Headers": { @@ -279,30 +279,30 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"eVJeoVjTXHsQEVF-BqO50IqkibZAEkUDewe9k5VEfjE\"" ], - "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzU=;sn=83169735" ], - "x-ms-request-id": [ "a8922f15-3f23-49bf-ac5f-7ec3955328c9" ], - "x-ms-correlation-request-id": [ "a8922f15-3f23-49bf-ac5f-7ec3955328c9" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "ETag": [ "\"o001ZvXBy01yGx76lDBEPRWHQlX7tZrosX_lT0PlW3E\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTQ=;sn=79468354" ], + "x-ms-request-id": [ "b2daf50b-531d-41c0-afaa-42f64c90a73a" ], + "x-ms-correlation-request-id": [ "b2daf50b-531d-41c0-afaa-42f64c90a73a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:28:08 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:36:51 GMT" ] }, - "Content": "{\"etag\":\"eVJeoVjTXHsQEVF-BqO50IqkibZAEkUDewe9k5VEfjE\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"archived\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"expires\":\"2026-05-10T21:28:23.2758968+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"o001ZvXBy01yGx76lDBEPRWHQlX7tZrosX_lT0PlW3E\",\"name\":\"updsnap-test2\",\"status\":\"archived\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"expires\":\"2026-05-10T21:37:09.1693572+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01+5": { + "Update-AzAppConfigurationSnapshot+[NoContext]+ArchiveAndRecover+$PATCH+https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01+5": { "Request": { "Method": "PATCH", - "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap2-ul1rzc?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01", "Content": "{\r\n \"status\": \"ready\"\r\n}", "isContentBase64": false, "Headers": { @@ -315,23 +315,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"eGvr3h3v4jDMloaCfAyqE41esEz-NlvqA6iLKEaZ0lM\"" ], - "Link": [ "\u003c/kv?snapshot=updsnap2-ul1rzc\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTM6MTkjODMxNjk3MzY=;sn=83169736" ], - "x-ms-request-id": [ "a2f94eb1-adc6-4196-b1e2-903928d21f18" ], - "x-ms-correlation-request-id": [ "a2f94eb1-adc6-4196-b1e2-903928d21f18" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:28:23 GMT" ], + "ETag": [ "\"WLfD0cvTTYl2Us5EQouWquZ3XBYj2oLrUFamUwyltQw\"" ], + "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTU=;sn=79468355" ], + "x-ms-request-id": [ "4d9e882b-0a72-470b-82a2-d0f9b0bb652a" ], + "x-ms-correlation-request-id": [ "4d9e882b-0a72-470b-82a2-d0f9b0bb652a" ], + "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:28:23 GMT" ] + "Last-Modified": [ "Fri, 10 Apr 2026 21:37:09 GMT" ] }, - "Content": "{\"etag\":\"eGvr3h3v4jDMloaCfAyqE41esEz-NlvqA6iLKEaZ0lM\",\"name\":\"updsnap2-ul1rzc\",\"status\":\"ready\",\"filters\":[{\"key\":\"k6i7\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:27:52+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"WLfD0cvTTYl2Us5EQouWquZ3XBYj2oLrUFamUwyltQw\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 index 607fdd1c2980..c8c222fa7d64 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Tests.ps1 @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzAppConfigurationSnap Describe 'Update-AzAppConfigurationSnapshot' { It 'UpdateExpanded' { # Create a snapshot, then archive it - $snapshotName = "updsnap-" + (RandomString -allChars $false -len 6) + $snapshotName = "updsnap-test1" $filter = @{ Key = $env.key } New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter $result = Update-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Status "archived" @@ -27,7 +27,7 @@ Describe 'Update-AzAppConfigurationSnapshot' { It 'ArchiveAndRecover' { # Create, archive, then recover a snapshot - $snapshotName = "updsnap2-" + (RandomString -allChars $false -len 6) + $snapshotName = "updsnap-test2" $filter = @{ Key = $env.key } New-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Filter $filter Update-AzAppConfigurationSnapshot -Endpoint $env.endpoint -Name $snapshotName -Status "archived" diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json index 759e54b4b492..7722102f8cae 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json @@ -1,10 +1,10 @@ { - "endpoint": "https://sanitized.azconfig.io", - "appStoreName2": "azspgd", - "resourceGroup": "azpstestgroup-fkcg8m", + "SubscriptionId": "00000000-0000-0000-0000-000000000000", "location": "eastus", - "appStoreName1": "az5thk", "Tenant": "00000000-0000-0000-0000-000000000000", - "key": "k6i7", - "SubscriptionId": "00000000-0000-0000-0000-000000000000" + "endpoint": "https://sanitized.azconfig.io", + "key": "ghse", + "appStoreName1": "az1vu5", + "appStoreName2": "azuihk", + "resourceGroup": "azpstestgroup-tduw7y" } From 58ee1e56bf28289d31ce975175f3377a2d64a41a Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 13 Apr 2026 15:50:25 -0700 Subject: [PATCH 06/10] Update Clear-AzAppConfigurationDeletedStore.md --- .../Clear-AzAppConfigurationDeletedStore.md | 36 ++++++------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md b/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md index 5ce41e7a2b13..2c93605e1466 100644 --- a/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md +++ b/src/AppConfiguration/AppConfiguration/help/Clear-AzAppConfigurationDeletedStore.md @@ -30,11 +30,13 @@ Permanently deletes the specified configuration store. ## EXAMPLES -### EXAMPLE 1 -``` +### Example 1: Permanently deletes the specified configuration store. +```powershell Clear-AzAppConfigurationDeletedStore -Location eastus -Name azpstestappstore ``` +Permanently deletes the specified configuration store. + ## PARAMETERS ### -AsJob @@ -47,7 +49,7 @@ Aliases: Required: False Position: Named -Default value: False +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -123,7 +125,7 @@ Aliases: Required: False Position: Named -Default value: False +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -138,7 +140,7 @@ Aliases: Required: False Position: Named -Default value: False +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` @@ -153,7 +155,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: (Get-AzContext).Subscription.Id Accept pipeline input: False Accept wildcard characters: False ``` @@ -195,29 +197,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS ### Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity + ## OUTPUTS ### System.Boolean + ## NOTES -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. -For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT \: Identity Parameter - \[ConfigStoreName \\]: The name of the configuration store. - \[GroupName \\]: The name of the private link resource group. - \[Id \\]: Resource identity path - \[KeyValueName \\]: Identifier of key and label combination. -Key and label are joined by $ character. -Label is optional. - \[Location \\]: The location in which uniqueness will be verified. - \[PrivateEndpointConnectionName \\]: Private endpoint connection name - \[ReplicaName \\]: The name of the replica. - \[ResourceGroupName \\]: The name of the resource group to which the container registry belongs. - \[SnapshotName \\]: The name of the snapshot. - \[SubscriptionId \\]: The Microsoft Azure subscription ID. ## RELATED LINKS - -[https://learn.microsoft.com/powershell/module/az.appconfiguration/clear-azappconfigurationdeletedstore](https://learn.microsoft.com/powershell/module/az.appconfiguration/clear-azappconfigurationdeletedstore) From 4325fc2c825aa0c705f1bfbca7aacbe349576453 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Mon, 13 Apr 2026 15:53:58 -0700 Subject: [PATCH 07/10] Update ChangeLog.md --- src/AppConfiguration/AppConfiguration/ChangeLog.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AppConfiguration/AppConfiguration/ChangeLog.md b/src/AppConfiguration/AppConfiguration/ChangeLog.md index 43c044f42dd3..662f9d2780b5 100644 --- a/src/AppConfiguration/AppConfiguration/ChangeLog.md +++ b/src/AppConfiguration/AppConfiguration/ChangeLog.md @@ -25,6 +25,12 @@ - Added `Remove-AzAppConfigurationReplica` cmdlet * Added `DataPlaneProxyAuthenticationMode`, `DataPlaneProxyPrivateLinkDelegation`, and `DefaultKeyValueRevisionRetentionPeriodInSecond` parameters to `New-AzAppConfigurationStore` and `Update-AzAppConfigurationStore` * Removed `SoftDeleteRetentionInDay` parameter from `Update-AzAppConfigurationStore` as it is a create-only property +* Added data plane snapshot cmdlets for Azure App Configuration + - Added `New-AzAppConfigurationSnapshot` cmdlet to create snapshots + - Added `Get-AzAppConfigurationSnapshot` cmdlet to retrieve snapshots + - Added `Update-AzAppConfigurationSnapshot` cmdlet to archive or recover snapshots + - Added `Test-AzAppConfigurationSnapshot` cmdlet to check if a snapshot exists +* Added `Get-AzAppConfigurationOperationDetail` cmdlet to retrieve data plane operation details ## Version 2.0.1 * Fixed GitHub issue #23731 'Problem with Get-AzAppConfigurationKeyValue when more that 100 records are present' From 721622105ab591efb1c919ea7fe451d4bfc443b9 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Thu, 16 Apr 2026 13:08:42 -0700 Subject: [PATCH 08/10] trying to fix snapshot listing keys --- src/AppConfiguration/AppConfiguration.sln | 28 +-- .../AppConfiguration/Az.AppConfiguration.psd1 | 2 +- .../help/Az.AppConfiguration.md | 2 +- .../help/Get-AzAppConfigurationKeyValue.md | 22 +- .../help/Get-AzAppConfigurationSnapshot.md | 76 ++---- .../help/Set-AzAppConfigurationKeyValue.md | 34 +-- .../Properties/AssemblyInfo.cs | 2 + .../AppConfigurationdata.Autorest/README.md | 12 + .../custom/Get-AzAppConfigurationKeyValue.ps1 | 12 + .../custom/Get-AzAppConfigurationSnapshot.ps1 | 228 ++++++++++++++++++ .../docs/Az.AppConfigurationdata.md | 2 +- .../docs/Get-AzAppConfigurationKeyValue.md | 21 +- .../docs/Get-AzAppConfigurationSnapshot.md | 57 ++--- .../docs/Set-AzAppConfigurationKeyValue.md | 34 +-- .../Get-AzAppConfigurationKeyValue.md | 1 + .../generate-info.json | 2 +- 16 files changed, 351 insertions(+), 184 deletions(-) create mode 100644 src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationSnapshot.ps1 diff --git a/src/AppConfiguration/AppConfiguration.sln b/src/AppConfiguration/AppConfiguration.sln index 266374fdebd7..fc807bd04dc0 100644 --- a/src/AppConfiguration/AppConfiguration.sln +++ b/src/AppConfiguration/AppConfiguration.sln @@ -25,7 +25,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfiguration", "..\. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{6FD402E4-108C-4BA7-80AA-32B286DB959B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{CBEC14C9-A582-4A34-8B66-69984F17833C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -133,18 +133,18 @@ Global {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x64.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.ActiveCfg = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.Build.0 = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x64.ActiveCfg = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x64.Build.0 = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x86.ActiveCfg = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Debug|x86.Build.0 = Debug|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|Any CPU.Build.0 = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x64.ActiveCfg = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x64.Build.0 = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x86.ActiveCfg = Release|Any CPU - {6FD402E4-108C-4BA7-80AA-32B286DB959B}.Release|x86.Build.0 = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x64.ActiveCfg = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x64.Build.0 = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x86.ActiveCfg = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x86.Build.0 = Debug|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|Any CPU.Build.0 = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x64.ActiveCfg = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x64.Build.0 = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x86.ActiveCfg = Release|Any CPU + {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -157,6 +157,6 @@ Global {8B389447-87EC-484E-B771-5D387632713A} = {E4EA62CD-566F-439D-A591-A3969389B28E} {AFC99D4F-4983-4CC4-A284-4A763374FC3B} = {E4EA62CD-566F-439D-A591-A3969389B28E} {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709} = {0274B85D-B38C-5E54-FB34-3750CA0399A4} - {6FD402E4-108C-4BA7-80AA-32B286DB959B} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} + {CBEC14C9-A582-4A34-8B66-69984F17833C} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} EndGlobalSection EndGlobal diff --git a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 index 9a7dc08be586..7a9bfc20dedf 100644 --- a/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 +++ b/src/AppConfiguration/AppConfiguration/Az.AppConfiguration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/10/2026 +# Generated on: 4/16/2026 # @{ diff --git a/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md b/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md index ca575cead883..60e611baa9f8 100644 --- a/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md +++ b/src/AppConfiguration/AppConfiguration/help/Az.AppConfiguration.md @@ -36,7 +36,7 @@ Gets the properties of the specified replica. Gets a list of key-value revisions. ### [Get-AzAppConfigurationSnapshot](Get-AzAppConfigurationSnapshot.md) -Gets a list of key-value snapshots. +Gets a single key-value snapshot or lists key-value snapshots. ### [Get-AzAppConfigurationStore](Get-AzAppConfigurationStore.md) Get or list app configuration stores. diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKeyValue.md index 7f87f8527617..fb90ca058e08 100644 --- a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationKeyValue.md @@ -23,8 +23,9 @@ Get-AzAppConfigurationKeyValue -Endpoint [-Key ] [-Label [-Key ] [-Label ] - [-Select ] [-After ] [-AcceptDatetime ] - [-SyncToken ] [-DefaultProfile ] [] + [-Select ] [-After ] [-Snapshot ] + [-AcceptDatetime ] [-SyncToken ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -214,6 +215,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Snapshot +A filter used get key-values for a snapshot. +The value should be the name of the snapshot. +Not valid when used with 'key' and 'label' filters. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SyncToken Used to guarantee real-time consistency between requests. diff --git a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md index 2724d7f68199..3c07ead0598d 100644 --- a/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfiguration/help/Get-AzAppConfigurationSnapshot.md @@ -8,36 +8,28 @@ schema: 2.0.0 # Get-AzAppConfigurationSnapshot ## SYNOPSIS -Gets a list of key-value snapshots. +Gets a single key-value snapshot or lists key-value snapshots. ## SYNTAX -### Get (Default) +### List (Default) ``` Get-AzAppConfigurationSnapshot -Endpoint [-Name ] [-After ] - [-Select ] - [-Status ] [-SyncToken ] + [-Status ] + [-Select ] [-SyncToken ] [-DefaultProfile ] [] ``` -### Get1 +### Get ``` -Get-AzAppConfigurationSnapshot -Endpoint -Name - [-Select ] [-SyncToken ] [-ClientRequestId ] - [-IfMatch ] [-IfNoneMatch ] [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzAppConfigurationSnapshot -Endpoint -InputObject +Get-AzAppConfigurationSnapshot -Endpoint [-Name ] [-Select ] [-SyncToken ] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-DefaultProfile ] [] ``` ## DESCRIPTION -Gets a list of key-value snapshots. +Gets a single key-value snapshot by name, or lists key-value snapshots with optional filtering. ## EXAMPLES @@ -70,12 +62,11 @@ Get a single key-value snapshot by name from an App Configuration store. ## PARAMETERS ### -After -Instructs the server to return elements that appear after the element referred -to by the specified token. +Instructs the server to return elements that appear after the element referred to by the specified token. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: List Aliases: Required: False @@ -90,7 +81,7 @@ An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -132,12 +123,11 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the -value provided. +Used to perform an operation only if the targeted resource's etag matches the value provided. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -148,12 +138,11 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not -match the value provided. +Used to perform an operation only if the targeted resource's etag does not match the value provided. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -163,27 +152,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -Name -A filter for the name of the returned snapshots. +The name of the snapshot. +When used with the Get parameter set, retrieves a single snapshot by exact name. +When used with the List parameter set, filters the returned snapshots by name. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: (All) Aliases: Required: False @@ -193,18 +169,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -```yaml -Type: System.String -Parameter Sets: Get1 -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Select Used to select what fields are present in the returned resource(s). @@ -225,7 +189,7 @@ Used to filter returned snapshots by their status property. ```yaml Type: System.Collections.Generic.List`1[System.String] -Parameter Sets: Get +Parameter Sets: List Aliases: Required: False @@ -255,8 +219,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot diff --git a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md index 7b67d6463f1e..c10d2b4580fa 100644 --- a/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfiguration/help/Set-AzAppConfigurationKeyValue.md @@ -16,8 +16,8 @@ Put a key-value. ``` Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] - [-Label1 ] [-LastModified ] [-Locked] [-Tag ] [-Value ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-LastModified ] [-Locked] [-Tag ] [-Value ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ### PutViaJsonFilePath @@ -216,21 +216,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Key1 -. - -```yaml -Type: System.String -Parameter Sets: PutExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Label The label of the key-value to create. @@ -246,21 +231,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Label1 -The label the key-value belongs to. - -```yaml -Type: System.String -Parameter Sets: PutExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -LastModified A date representing the last time the key-value was modified. diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs index f3d88ade9772..476dd9e48dc1 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,5 @@ [assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md index 4468bead4760..5eef27cbccaf 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md @@ -95,6 +95,13 @@ directive: verb: Get hide: true + # Hide the get operation for Snapshot to provide a custom cmdlet with clean Get/List parameter sets + # instead of the auto-generated Get/Get1 naming (matching the Python SDK's get_snapshot vs list_snapshots pattern) + - where: + subject: ^Snapshot$ + verb: Get + hide: true + # The head operation for key is not supported. - where: subject: ^Key$|^Label$|^Revision$ @@ -107,6 +114,11 @@ directive: verb: Set remove: true + # Mark label as read-only on KeyValue to prevent it from being settable + - from: swagger-document + where: $.definitions.KeyValue.properties.label + transform: $["readOnly"] = true + # Remove the body 'etag' property from Snapshot to avoid CLS conflict with # the response header 'ETag' property (they differ only in casing). - from: swagger-document diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationKeyValue.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationKeyValue.ps1 index 26b802728329..2a12cc5582b3 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationKeyValue.ps1 +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationKeyValue.ps1 @@ -31,6 +31,12 @@ Function Test-WildcardExpression { Gets a list of key-values. .Description Gets a list of key-values. +.Example +Get-AzAppConfigurationKeyValue -Endpoint $endpoint +.Example +Get-AzAppConfigurationKeyValue -Endpoint $endpoint -Key "key*" +.Example +Get-AzAppConfigurationKeyValue -Endpoint $endpoint -Key "keyName1" .Outputs Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IKeyValue .Link @@ -59,6 +65,12 @@ function Get-AzAppConfigurationKeyValue { # Instructs the server to return elements that appear after the element referred to by the specified token. ${After}, + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Query')] + [System.String] + # A filter used get key-values for a snapshot. The value should be the name of the snapshot. Not valid when used with 'key' and 'label' filters. + ${Snapshot}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Query')] [System.String] diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationSnapshot.ps1 b/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationSnapshot.ps1 new file mode 100644 index 000000000000..7310029e7bd9 --- /dev/null +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/custom/Get-AzAppConfigurationSnapshot.ps1 @@ -0,0 +1,228 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a single key-value snapshot or lists key-value snapshots. +.Description +Gets a single key-value snapshot by name, or lists key-value snapshots with optional filtering. +.Example +Get-AzAppConfigurationSnapshot -Endpoint $endpoint +.Example +Get-AzAppConfigurationSnapshot -Endpoint $endpoint -Name "mySnapshot" +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot +.Link +https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationsnapshot +#> +function Get-AzAppConfigurationSnapshot { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot])] + [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] + param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Uri')] + [System.String] + # The endpoint of the App Configuration instance to send requests to. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Path')] + [System.String] + # The name of the snapshot. When used with the Get parameter set, retrieves a single snapshot by exact name. + # When used with the List parameter set, filters the returned snapshots by name. + ${Name}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Query')] + [System.String] + # Instructs the server to return elements that appear after the element referred to by the specified token. + ${After}, + + [Parameter(ParameterSetName='List')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.PSArgumentCompleterAttribute("provisioning", "ready", "archived", "failed")] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.Info(PossibleTypes=([System.String]))] + [System.Collections.Generic.List[System.String]] + # Used to filter returned snapshots by their status property. + ${Status}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.PSArgumentCompleterAttribute("name", "status", "filters", "composition_type", "created", "expires", "retention_period", "size", "items_count", "tags", "etag")] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.Info(PossibleTypes=([System.String]))] + [System.Collections.Generic.List[System.String]] + # Used to select what fields are present in the returned resource(s). + ${Select}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Header')] + [System.String] + # Used to guarantee real-time consistency between requests. + ${SyncToken}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Header')] + [System.String] + # An opaque, globally-unique, client-generated string identifier for the request. + ${ClientRequestId}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Header')] + [System.String] + # Used to perform an operation only if the targeted resource's etag matches the value provided. + ${IfMatch}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Header')] + [System.String] + # Used to perform an operation only if the targeted resource's etag does not match the value provided. + ${IfNoneMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + # Route to 'Get' (single snapshot) when Name is provided and no list-only params are used; + # otherwise default to 'List'. This mirrors the Python SDK's get_snapshot vs list_snapshots. + if ($PSBoundParameters.ContainsKey("Name") -and + (-not $PSBoundParameters.ContainsKey("After")) -and + (-not $PSBoundParameters.ContainsKey("Status"))) { + $parameterSet = 'Get' + } else { + $parameterSet = 'List' + } + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.AppConfigurationdata.private\Get-AzAppConfigurationSnapshot_Get'; + Get = 'Az.AppConfigurationdata.private\Get-AzAppConfigurationSnapshot_Get1'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + } + + process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + + } + end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + } +} diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md index 91f61381732c..227783868fa5 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Az.AppConfigurationdata.md @@ -27,7 +27,7 @@ Gets the state of a long running operation. Gets a list of key-value revisions. ### [Get-AzAppConfigurationSnapshot](Get-AzAppConfigurationSnapshot.md) -Gets a list of key-value snapshots. +Gets a single key-value snapshot or lists key-value snapshots. ### [New-AzAppConfigurationSnapshot](New-AzAppConfigurationSnapshot.md) Create a key-value snapshot. diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKeyValue.md index 2876b684a45c..eaadfa7b0322 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationKeyValue.md @@ -22,8 +22,8 @@ Get-AzAppConfigurationKeyValue -Endpoint [-Key ] [-Label [-Key ] [-After ] [-Label ] - [-Select >] [-AcceptDatetime ] [-SyncToken ] [-DefaultProfile ] - [] + [-Select >] [-Snapshot ] [-AcceptDatetime ] [-SyncToken ] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -213,6 +213,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Snapshot +A filter used get key-values for a snapshot. +The value should be the name of the snapshot. +Not valid when used with 'key' and 'label' filters. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SyncToken Used to guarantee real-time consistency between requests. diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md index fd210ef07579..7880bbaf4d02 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Get-AzAppConfigurationSnapshot.md @@ -8,32 +8,25 @@ schema: 2.0.0 # Get-AzAppConfigurationSnapshot ## SYNOPSIS -Gets a list of key-value snapshots. +Gets a single key-value snapshot or lists key-value snapshots. ## SYNTAX -### Get (Default) +### List (Default) ``` Get-AzAppConfigurationSnapshot -Endpoint [-Name ] [-After ] [-Select >] [-Status >] [-SyncToken ] [-DefaultProfile ] [] ``` -### Get1 +### Get ``` Get-AzAppConfigurationSnapshot -Endpoint -Name [-Select >] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-DefaultProfile ] [] ``` -### GetViaIdentity -``` -Get-AzAppConfigurationSnapshot -Endpoint -InputObject - [-Select >] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] - [-SyncToken ] [-DefaultProfile ] [] -``` - ## DESCRIPTION -Gets a list of key-value snapshots. +Gets a single key-value snapshot by name, or lists key-value snapshots with optional filtering. ## EXAMPLES @@ -66,12 +59,11 @@ Get a single key-value snapshot by name from an App Configuration store. ## PARAMETERS ### -After -Instructs the server to return elements that appear after the element referred -to by the specified token. +Instructs the server to return elements that appear after the element referred to by the specified token. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: List Aliases: Required: False @@ -86,7 +78,7 @@ An opaque, globally-unique, client-generated string identifier for the request. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -128,12 +120,11 @@ Accept wildcard characters: False ``` ### -IfMatch -Used to perform an operation only if the targeted resource's etag matches the -value provided. +Used to perform an operation only if the targeted resource's etag matches the value provided. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -144,12 +135,11 @@ Accept wildcard characters: False ``` ### -IfNoneMatch -Used to perform an operation only if the targeted resource's etag does not -match the value provided. +Used to perform an operation only if the targeted resource's etag does not match the value provided. ```yaml Type: System.String -Parameter Sets: Get1, GetViaIdentity +Parameter Sets: Get Aliases: Required: False @@ -159,27 +149,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -Name -A filter for the name of the returned snapshots. +The name of the snapshot. +When used with the Get parameter set, retrieves a single snapshot by exact name. +When used with the List parameter set, filters the returned snapshots by name. ```yaml Type: System.String -Parameter Sets: Get, Get1 +Parameter Sets: (All) Aliases: Required: True @@ -209,7 +186,7 @@ Used to filter returned snapshots by their status property. ```yaml Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] -Parameter Sets: Get +Parameter Sets: List Aliases: Required: False @@ -239,8 +216,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.IAppConfigurationdataIdentity - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Models.ISnapshot diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md index b6b86fe2730a..d59d2a9a3ef8 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/Set-AzAppConfigurationKeyValue.md @@ -16,8 +16,8 @@ Put a key-value. ``` Set-AzAppConfigurationKeyValue -Endpoint -Key [-Label ] [-ClientRequestId ] [-IfMatch ] [-IfNoneMatch ] [-SyncToken ] [-ContentType ] [-Etag ] - [-Label1 ] [-LastModified ] [-Locked] [-Tag ] [-Value ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-LastModified ] [-Locked] [-Tag ] [-Value ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] ``` ### PutViaJsonFilePath @@ -216,21 +216,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Key1 -. - -```yaml -Type: System.String -Parameter Sets: PutExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Label The label of the key-value to create. @@ -246,21 +231,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Label1 -The label the key-value belongs to. - -```yaml -Type: System.String -Parameter Sets: PutExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -LastModified A date representing the last time the key-value was modified. diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationKeyValue.md index e21d33ec9705..4aedd9f5716b 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationKeyValue.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/examples/Get-AzAppConfigurationKeyValue.md @@ -40,3 +40,4 @@ ContentType Etag Key Label LastModif ``` You can get a key-value in an App Configuration store with the key name. + diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json index 3c9b9fb01963..0e05d711595c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "1636dabe-afa7-4229-a7d8-d6402426cdd4" + "generate_Id": "50cffddb-8c79-48ff-b0dd-a9f33a41079b" } From 1bc81b81e0775da7ecb0aed50eaa676ac866b72c Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Thu, 16 Apr 2026 13:23:55 -0700 Subject: [PATCH 09/10] review comments --- src/AppConfiguration/AppConfiguration.sln | 28 +++++++++---------- .../help/New-AzAppConfigurationSnapshot.md | 12 ++++---- .../help/New-AzAppConfigurationStore.md | 2 +- .../help/Update-AzAppConfigurationStore.md | 2 +- .../Properties/AssemblyInfo.cs | 2 -- .../AppConfigurationdata.Autorest/README.md | 11 ++++++++ .../docs/New-AzAppConfigurationSnapshot.md | 12 ++++---- .../generate-info.json | 2 +- 8 files changed, 40 insertions(+), 31 deletions(-) diff --git a/src/AppConfiguration/AppConfiguration.sln b/src/AppConfiguration/AppConfiguration.sln index fc807bd04dc0..32f7f0b8d265 100644 --- a/src/AppConfiguration/AppConfiguration.sln +++ b/src/AppConfiguration/AppConfiguration.sln @@ -25,7 +25,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfiguration", "..\. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppConfigurationdata.Autorest", "AppConfigurationdata.Autorest", "{EF43BCD0-DC0A-3145-8EB8-34F6F1B43072}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{CBEC14C9-A582-4A34-8B66-69984F17833C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.AppConfigurationdata", "..\..\generated\AppConfiguration\AppConfigurationdata.Autorest\Az.AppConfigurationdata.csproj", "{E723EF47-5729-4618-A303-664FDC93E38C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -133,18 +133,18 @@ Global {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x64.Build.0 = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.ActiveCfg = Release|Any CPU {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709}.Release|x86.Build.0 = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x64.ActiveCfg = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x64.Build.0 = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x86.ActiveCfg = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Debug|x86.Build.0 = Debug|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|Any CPU.Build.0 = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x64.ActiveCfg = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x64.Build.0 = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x86.ActiveCfg = Release|Any CPU - {CBEC14C9-A582-4A34-8B66-69984F17833C}.Release|x86.Build.0 = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|x64.ActiveCfg = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|x64.Build.0 = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|x86.ActiveCfg = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Debug|x86.Build.0 = Debug|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|Any CPU.Build.0 = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|x64.ActiveCfg = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|x64.Build.0 = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|x86.ActiveCfg = Release|Any CPU + {E723EF47-5729-4618-A303-664FDC93E38C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -157,6 +157,6 @@ Global {8B389447-87EC-484E-B771-5D387632713A} = {E4EA62CD-566F-439D-A591-A3969389B28E} {AFC99D4F-4983-4CC4-A284-4A763374FC3B} = {E4EA62CD-566F-439D-A591-A3969389B28E} {D0B9B173-4D2D-40D6-AF7C-E95A0F4FA709} = {0274B85D-B38C-5E54-FB34-3750CA0399A4} - {CBEC14C9-A582-4A34-8B66-69984F17833C} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} + {E723EF47-5729-4618-A303-664FDC93E38C} = {EF43BCD0-DC0A-3145-8EB8-34F6F1B43072} EndGlobalSection EndGlobal diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md index e2b8e423e081..538fcb573d41 100644 --- a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationSnapshot.md @@ -107,9 +107,9 @@ Accept wildcard characters: False ``` ### -CompositionType -The composition type describes how the key-values within the snapshot arecomposed. -The 'key' composition type ensures there are no two key-valuescontaining the same key. -The 'key_label' composition type ensures there are notwo key-values containing the same key and label. +The composition type describes how the key-values within the snapshot are composed. +The 'key' composition type ensures there are no two key-values containing the same key. +The 'key_label' composition type ensures there are no two key-values containing the same key and label. ```yaml Type: System.String @@ -260,9 +260,9 @@ Accept wildcard characters: False ``` ### -RetentionPeriod -The amount of time, in seconds, that a snapshot will remain in the archivedstate before expiring. -This property is only writable during the creation of asnapshot. -If not specified, the default lifetime of key-value revisions will beused. +The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. +This property is only writable during the creation of a snapshot. +If not specified, the default lifetime of key-value revisions will be used. ```yaml Type: System.Int64 diff --git a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md index cc0c7aad4d01..05809bfb232d 100644 --- a/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md +++ b/src/AppConfiguration/AppConfiguration/help/New-AzAppConfigurationStore.md @@ -150,7 +150,7 @@ Aliases: Required: False Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md index 70c9d2d98dda..ed3689742cc2 100644 --- a/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md +++ b/src/AppConfiguration/AppConfiguration/help/Update-AzAppConfigurationStore.md @@ -127,7 +127,7 @@ Aliases: Required: False Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs index 476dd9e48dc1..f3d88ade9772 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/Properties/AssemblyInfo.cs @@ -24,5 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md index 5eef27cbccaf..89780135efe9 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/README.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/README.md @@ -125,6 +125,17 @@ directive: where: $.definitions.Snapshot.properties transform: delete $.etag + # Fix descriptions where newlines in the API spec are stripped without adding a space, + # causing words to run together (e.g., "arecomposed", "valuescontaining", "archivedstate"). + - from: swagger-document + where: $.definitions.Snapshot.properties.composition_type + transform: >- + $.description = "The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label."; + - from: swagger-document + where: $.definitions.Snapshot.properties.retention_period + transform: >- + $.description = "The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used."; + # Improve the Endpoint parameter description for all cmdlets - where: parameter-name: Endpoint diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md index 84af134ecb3d..925a4e011372 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/docs/New-AzAppConfigurationSnapshot.md @@ -102,9 +102,9 @@ Accept wildcard characters: False ``` ### -CompositionType -The composition type describes how the key-values within the snapshot arecomposed. -The 'key' composition type ensures there are no two key-valuescontaining the same key. -The 'key_label' composition type ensures there are notwo key-values containing the same key and label. +The composition type describes how the key-values within the snapshot are composed. +The 'key' composition type ensures there are no two key-values containing the same key. +The 'key_label' composition type ensures there are no two key-values containing the same key and label. ```yaml Type: System.String @@ -255,9 +255,9 @@ Accept wildcard characters: False ``` ### -RetentionPeriod -The amount of time, in seconds, that a snapshot will remain in the archivedstate before expiring. -This property is only writable during the creation of asnapshot. -If not specified, the default lifetime of key-value revisions will beused. +The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. +This property is only writable during the creation of a snapshot. +If not specified, the default lifetime of key-value revisions will be used. ```yaml Type: System.Int64 diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json index 0e05d711595c..6b82382607be 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "50cffddb-8c79-48ff-b0dd-a9f33a41079b" + "generate_Id": "f318f2c1-3851-4c9f-bd47-92d8c9b6076a" } From fc8edaa13a0e491812c2c41fa1feaef449578e3c Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Fri, 17 Apr 2026 11:32:12 -0700 Subject: [PATCH 10/10] updated recordings --- .../AzAppConfigurationKeyValue.Recording.json | 96 ++++++------ .../AzAppConfigurationLock.Recording.json | 84 +++++----- .../Get-AzAppConfigurationKey.Recording.json | 14 +- ...-AzAppConfigurationKeyValue.Recording.json | 38 ++--- ...Get-AzAppConfigurationLabel.Recording.json | 12 +- ...onfigurationOperationDetail.Recording.json | 60 ++++---- ...-AzAppConfigurationRevision.Recording.json | 16 +- ...-AzAppConfigurationSnapshot.Recording.json | 87 ++++++----- ...-AzAppConfigurationSnapshot.Recording.json | 96 ++++++------ ...-AzAppConfigurationKeyValue.Recording.json | 46 +++--- ...move-AzAppConfigurationLock.Recording.json | 70 ++++----- ...-AzAppConfigurationKeyValue.Recording.json | 68 ++++----- .../Set-AzAppConfigurationLock.Recording.json | 70 ++++----- ...-AzAppConfigurationKeyValue.Recording.json | 62 ++++---- ...-AzAppConfigurationSnapshot.Recording.json | 76 ++++----- ...-AzAppConfigurationSnapshot.Recording.json | 144 +++++++++--------- .../test/env.json | 12 +- 17 files changed, 527 insertions(+), 524 deletions(-) diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json index c5729743e5c1..fba932f3098c 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationKeyValue.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test+1": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01\u0026label=test+1": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01\u0026label=test", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "617d8717-1034-4363-b0aa-337158d8c5b4" ], + "x-ms-client-request-id": [ "30e65aaf-3add-47e9-b1ce-5d7a3787c331" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,29 +19,29 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzY=;sn=79468276" ], - "x-ms-request-id": [ "aaad26dc-c2a8-4a6c-bd9d-5199910bccd7" ], - "x-ms-correlation-request-id": [ "aaad26dc-c2a8-4a6c-bd9d-5199910bccd7" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "ETag": [ "\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkxOTk=;sn=79279199" ], + "x-ms-request-id": [ "c27a288f-baf4-495f-b933-6bb891f1a762" ], + "x-ms-correlation-request-id": [ "c27a288f-baf4-495f-b933-6bb891f1a762" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:20 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:35 GMT" ] }, - "Content": "{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}", + "Content": "{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}", "isContentBase64": false } }, - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+2": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01", "Content": "{\r\n \"value\": \"value2\"\r\n}", "isContentBase64": false, "Headers": { @@ -54,30 +54,30 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzc=;sn=79468277" ], - "x-ms-request-id": [ "a8de0714-921e-4ffa-b1be-d5dbd36aa4b9" ], - "x-ms-correlation-request-id": [ "a8de0714-921e-4ffa-b1be-d5dbd36aa4b9" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "ETag": [ "\"ErEJeQVf1BW4QkI8cOFTTGiocKZk6pdkTUmCVlRfNvI\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDA=;sn=79279200" ], + "x-ms-request-id": [ "38a553a5-fe28-47c6-83ac-71281058109d" ], + "x-ms-correlation-request-id": [ "38a553a5-fe28-47c6-83ac-71281058109d" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:21 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:36 GMT" ] }, - "Content": "{\"etag\":\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"}", + "Content": "{\"etag\":\"ErEJeQVf1BW4QkI8cOFTTGiocKZk6pdkTUmCVlRfNvI\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"}", "isContentBase64": false } }, - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+3": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$PUT+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", - "Content": "{\"key\":\"ghse\", \"value\":\"value3\"}", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01", + "Content": "{\"key\":\"2wcg\", \"value\":\"value3\"}", "isContentBase64": false, "Headers": { }, @@ -89,22 +89,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzg=;sn=79468278" ], - "x-ms-request-id": [ "07ec611f-7e62-40f0-9cb0-e92e62f3fe69" ], - "x-ms-correlation-request-id": [ "07ec611f-7e62-40f0-9cb0-e92e62f3fe69" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "ETag": [ "\"FkJdY_hDOrHDxgbndjLGjHHbe7otDTkrD33VQ1EPEbw\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDE=;sn=79279201" ], + "x-ms-request-id": [ "475f98ab-67c0-4c22-b0c3-b93da667df01" ], + "x-ms-correlation-request-id": [ "475f98ab-67c0-4c22-b0c3-b93da667df01" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:21 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:36 GMT" ] }, - "Content": "{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"}", + "Content": "{\"etag\":\"FkJdY_hDOrHDxgbndjLGjHHbe7otDTkrD33VQ1EPEbw\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"}", "isContentBase64": false } }, @@ -115,7 +115,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "40724e0a-53d1-4c5e-8453-581d039aa0bd" ], + "x-ms-client-request-id": [ "4357ff13-fd97-416a-a9e3-bd4d5034774e" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -128,21 +128,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzk=;sn=79468279" ], - "x-ms-request-id": [ "d7d0dd3e-ddf9-417a-b999-8b4398880838" ], - "x-ms-correlation-request-id": [ "d7d0dd3e-ddf9-417a-b999-8b4398880838" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "ETag": [ "\"of68mY9cirLXcVGJ4aSzufOV6JHCtqMCUi0LFoQjc7A\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDI=;sn=79279202" ], + "x-ms-request-id": [ "2a1755ba-2fe1-420a-ad1e-08067623c993" ], + "x-ms-correlation-request-id": [ "2a1755ba-2fe1-420a-ad1e-08067623c993" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:36 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\",\"items\":[{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", + "Content": "{\"etag\":\"of68mY9cirLXcVGJ4aSzufOV6JHCtqMCUi0LFoQjc7A\",\"items\":[{\"etag\":\"FkJdY_hDOrHDxgbndjLGjHHbe7otDTkrD33VQ1EPEbw\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"},{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}]}", "isContentBase64": false } }, @@ -153,7 +153,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "90ef46d0-7e36-4271-976c-9ee50d6b624d" ], + "x-ms-client-request-id": [ "59fe0ea4-ca48-400c-9f85-fbcb4a83c29d" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -166,21 +166,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:37 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyNzk=;sn=79468279" ], - "x-ms-request-id": [ "301e81b6-06db-4e63-bafd-e6abb6881014" ], - "x-ms-correlation-request-id": [ "301e81b6-06db-4e63-bafd-e6abb6881014" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:21 GMT" ], + "ETag": [ "\"of68mY9cirLXcVGJ4aSzufOV6JHCtqMCUi0LFoQjc7A\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDI=;sn=79279202" ], + "x-ms-request-id": [ "418b9b2f-f926-449a-a887-66c2fb0145f5" ], + "x-ms-correlation-request-id": [ "418b9b2f-f926-449a-a887-66c2fb0145f5" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:37 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"aVUxR7NPTWMfEsPTARUvDPgyzW6qUb8wdxgqdYgBfys\",\"items\":[{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", + "Content": "{\"etag\":\"of68mY9cirLXcVGJ4aSzufOV6JHCtqMCUi0LFoQjc7A\",\"items\":[{\"etag\":\"FkJdY_hDOrHDxgbndjLGjHHbe7otDTkrD33VQ1EPEbw\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"},{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json index 4b8b0b116b36..4f6ef8e26f51 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/AzAppConfigurationLock.Recording.json @@ -1,12 +1,12 @@ { - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$PUT+https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01+1": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$PUT+https://sanitized.azconfig.io/locks/2wcg?api-version=2024-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/2wcg?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "5c6f59fe-f211-422c-80c9-a57726b38e4f" ], + "x-ms-client-request-id": [ "ed9763fe-50dd-409b-815d-00a2eb56ab9c" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,33 +19,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODA=;sn=79468280" ], - "x-ms-request-id": [ "e4b10954-c214-4b55-ad64-1007483d96f5" ], - "x-ms-correlation-request-id": [ "e4b10954-c214-4b55-ad64-1007483d96f5" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "ETag": [ "\"QzYPa9H6FnQ3HAeT3K6EGBdRk7fPlriFYWhzPd1EpPA\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDU=;sn=79279205" ], + "x-ms-request-id": [ "ca3626cb-1ccd-4b09-ac22-0d29f7166d2c" ], + "x-ms-correlation-request-id": [ "ca3626cb-1ccd-4b09-ac22-0d29f7166d2c" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:38 GMT" ] }, - "Content": "{\"etag\":\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", + "Content": "{\"etag\":\"QzYPa9H6FnQ3HAeT3K6EGBdRk7fPlriFYWhzPd1EpPA\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-16T21:51:38+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+2": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "a5c2eb24-d9cd-42f3-9abc-431ae74cea06" ], + "x-ms-client-request-id": [ "175b9fb7-3e16-4a38-8426-48def256364e" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,31 +58,31 @@ "Response": { "StatusCode": 409, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODE=;sn=79468281" ], - "x-ms-request-id": [ "694412f9-6fbc-4a6a-84c2-8137685bd0e4" ], - "x-ms-correlation-request-id": [ "694412f9-6fbc-4a6a-84c2-8137685bd0e4" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDY=;sn=79279206" ], + "x-ms-request-id": [ "b80f200d-c7aa-4819-b177-5f59d09dd6d1" ], + "x-ms-correlation-request-id": [ "b80f200d-c7aa-4819-b177-5f59d09dd6d1" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/problem+json; charset=utf-8" ] }, - "Content": "{\"type\":\"https://azconfig.io/errors/key-locked\",\"title\":\"Modifing key \u0027ghse\u0027 is not allowed\",\"name\":\"ghse\",\"detail\":\"The key is read-only. To allow modification unlock it first.\",\"status\":409}", + "Content": "{\"type\":\"https://azconfig.io/errors/key-locked\",\"title\":\"Modifing key \u00272wcg\u0027 is not allowed\",\"name\":\"2wcg\",\"detail\":\"The key is read-only. To allow modification unlock it first.\",\"status\":409}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01+3": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/locks/2wcg?api-version=2024-09-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/locks/ghse?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/locks/2wcg?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "047f71e3-e8dd-4b99-b2a8-7d516d710f13" ], + "x-ms-client-request-id": [ "74ff2697-45c1-4687-97ad-fb7b3aef1ae9" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -95,33 +95,33 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODI=;sn=79468282" ], - "x-ms-request-id": [ "3494d0e1-acd2-491f-afa5-1b46d519afd3" ], - "x-ms-correlation-request-id": [ "3494d0e1-acd2-491f-afa5-1b46d519afd3" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "ETag": [ "\"Ycj9oFydl0P1_ILEaacbPFowF36Le8NeeLpRRLtDB3E\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDc=;sn=79279207" ], + "x-ms-request-id": [ "4c879e55-afbb-48d2-8522-03004c93e1fe" ], + "x-ms-correlation-request-id": [ "4c879e55-afbb-48d2-8522-03004c93e1fe" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:38 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:38 GMT" ] }, - "Content": "{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", + "Content": "{\"etag\":\"Ycj9oFydl0P1_ILEaacbPFowF36Le8NeeLpRRLtDB3E\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:38+00:00\"}", "isContentBase64": false } }, - "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01+4": { + "Remove-AzAppConfigurationLock+[NoContext]+Lock+$DELETE+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "8bdb57b5-8b88-4c09-bfba-bf2ee41f4264" ], + "x-ms-client-request-id": [ "05838c13-97c8-4155-ac08-c2913dcaae3b" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -134,22 +134,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:39 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], - "x-ms-request-id": [ "a311782f-07b2-4db3-9481-056ef6d30da4" ], - "x-ms-correlation-request-id": [ "a311782f-07b2-4db3-9481-056ef6d30da4" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:22 GMT" ], + "ETag": [ "\"Ycj9oFydl0P1_ILEaacbPFowF36Le8NeeLpRRLtDB3E\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMDk=;sn=79279209" ], + "x-ms-request-id": [ "4feb049e-85d6-4e1f-b476-da88ec8b2483" ], + "x-ms-correlation-request-id": [ "4feb049e-85d6-4e1f-b476-da88ec8b2483" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:39 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:22 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:38 GMT" ] }, - "Content": "{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"}", + "Content": "{\"etag\":\"Ycj9oFydl0P1_ILEaacbPFowF36Le8NeeLpRRLtDB3E\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:38+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json index 3ef7ff15d32e..f3593a6f5294 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKey.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "8746ade6-c885-417e-aa06-227a1cca44b9" ], + "x-ms-client-request-id": [ "0121ec53-6309-4194-9e11-309f93c2b195" ], "CommandName": [ "Get-AzAppConfigurationKey" ], "FullCommandName": [ "Get-AzAppConfigurationKey_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,20 +19,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:23 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:39 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], - "x-ms-request-id": [ "9f2f5d41-2d42-459a-8ef5-b0f5379c6e0e" ], - "x-ms-correlation-request-id": [ "9f2f5d41-2d42-459a-8ef5-b0f5379c6e0e" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:23 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMTE=;sn=79279211" ], + "x-ms-request-id": [ "dc651cee-a511-4890-9e24-7d4cdd8266cb" ], + "x-ms-correlation-request-id": [ "dc651cee-a511-4890-9e24-7d4cdd8266cb" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:39 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.keyset+json; charset=utf-8" ] }, - "Content": "{\"items\":[{\"name\":\"ghse\"}]}", + "Content": "{\"items\":[{\"name\":\"2wcg\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json index 3805c42f0cef..71bdf88efbfb 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationKeyValue.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test+1": { + "Get-AzAppConfigurationKeyValue+[NoContext]+Get+$GET+https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01\u0026label=test+1": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/kv/ghse?api-version=2024-09-01\u0026label=test", + "RequestUri": "https://sanitized.azconfig.io/kv/2wcg?api-version=2024-09-01\u0026label=test", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "03cf90fa-b367-4252-837e-15e60502b695" ], + "x-ms-client-request-id": [ "cbcd8e79-ae2b-42ae-96df-c7d52f37bdd5" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,22 +19,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:40 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], - "x-ms-request-id": [ "c379d2e8-2f57-43ab-b0e9-71bcbcd5dffb" ], - "x-ms-correlation-request-id": [ "c379d2e8-2f57-43ab-b0e9-71bcbcd5dffb" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "ETag": [ "\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMTE=;sn=79279211" ], + "x-ms-request-id": [ "487d0877-b9af-411d-baf0-f5728362b2dd" ], + "x-ms-correlation-request-id": [ "487d0877-b9af-411d-baf0-f5728362b2dd" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:40 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:20 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:35 GMT" ] }, - "Content": "{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}", + "Content": "{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}", "isContentBase64": false } }, @@ -45,7 +45,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "64342b5d-bb60-437f-89c6-3538225a7781" ], + "x-ms-client-request-id": [ "08495916-6811-4e4e-bc9a-b4a1a9b3022e" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,21 +58,21 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:40 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"Vhm_lDL-pseie8U_1j4xebG5OF_k4zIcnHp3KAowU6E\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], - "x-ms-request-id": [ "960c037a-0092-413a-b2bb-5f5e85d8977b" ], - "x-ms-correlation-request-id": [ "960c037a-0092-413a-b2bb-5f5e85d8977b" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "ETag": [ "\"b1AG8Uxgwmr9sOXpJ9nVssJpilaHGxGgk60qkyWESyU\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMTE=;sn=79279211" ], + "x-ms-request-id": [ "376bd5d9-657f-4537-b4eb-e2cbb98aea6a" ], + "x-ms-correlation-request-id": [ "376bd5d9-657f-4537-b4eb-e2cbb98aea6a" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:40 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"Vhm_lDL-pseie8U_1j4xebG5OF_k4zIcnHp3KAowU6E\",\"items\":[{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", + "Content": "{\"etag\":\"b1AG8Uxgwmr9sOXpJ9nVssJpilaHGxGgk60qkyWESyU\",\"items\":[{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json index 1a8389c29e13..5da9066e61bc 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationLabel.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "36bfa58a-80ef-4d62-842f-de49b965c4e0" ], + "x-ms-client-request-id": [ "2cc99ebf-ad6b-4aee-8ac4-2824826257b8" ], "CommandName": [ "Get-AzAppConfigurationLabel" ], "FullCommandName": [ "Get-AzAppConfigurationLabel_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,13 +19,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:41 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODQ=;sn=79468284" ], - "x-ms-request-id": [ "1cd74416-1784-4560-825d-84806c1934a4" ], - "x-ms-correlation-request-id": [ "1cd74416-1784-4560-825d-84806c1934a4" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:24 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMTE=;sn=79279211" ], + "x-ms-request-id": [ "b1e342c7-fe3d-40b8-b0c1-dc334686d75c" ], + "x-ms-correlation-request-id": [ "b1e342c7-fe3d-40b8-b0c1-dc334686d75c" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:41 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json index a18484adb937..e3b32920f8e1 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationOperationDetail.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/opdetail-test1?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,24 +15,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:25 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:51:41 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\"" ], + "ETag": [ "\"yCNDsrwdn2XY751wymtcT-h_1p4XboyZHmlZVdv6hFk\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=opdetail-test1\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=opdetail-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODU=;sn=79468285" ], - "x-ms-request-id": [ "2421824f-c13e-4583-8352-0f6da848ae47" ], - "x-ms-correlation-request-id": [ "2421824f-c13e-4583-8352-0f6da848ae47" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:25 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMTQ=;sn=79279214" ], + "x-ms-request-id": [ "e1f32ffb-bcf7-4896-bc96-d8e66d38b42d" ], + "x-ms-correlation-request-id": [ "e1f32ffb-bcf7-4896-bc96-d8e66d38b42d" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:51:41 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:25 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:41 GMT" ] }, - "Content": "{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25.425806+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yCNDsrwdn2XY751wymtcT-h_1p4XboyZHmlZVdv6hFk\",\"name\":\"opdetail-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:51:41.6887928+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -44,7 +44,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4ff22164-28d5-4e8c-a58e-86ada4fc5f22" ], + "x-ms-client-request-id": [ "2a220c30-d3b3-4de0-8f9b-f167cca0b00d" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,13 +56,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], - "x-ms-request-id": [ "5d0da093-66cd-40fa-9632-f714e2b58e4c" ], - "x-ms-correlation-request-id": [ "5d0da093-66cd-40fa-9632-f714e2b58e4c" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMzk=;sn=79279239" ], + "x-ms-request-id": [ "a4d7af34-6503-4bb0-8eb1-07da05165fb7" ], + "x-ms-correlation-request-id": [ "a4d7af34-6503-4bb0-8eb1-07da05165fb7" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -81,7 +81,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "4ff22164-28d5-4e8c-a58e-86ada4fc5f22" ], + "x-ms-client-request-id": [ "2a220c30-d3b3-4de0-8f9b-f167cca0b00d" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,23 +93,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\"" ], + "ETag": [ "\"yCNDsrwdn2XY751wymtcT-h_1p4XboyZHmlZVdv6hFk\"" ], "Link": [ "\u003c/kv?snapshot=opdetail-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], - "x-ms-request-id": [ "7f3fc25a-5c87-499b-a9f3-83569aa77a9f" ], - "x-ms-correlation-request-id": [ "7f3fc25a-5c87-499b-a9f3-83569aa77a9f" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMzk=;sn=79279239" ], + "x-ms-request-id": [ "a7eb7ae0-1d97-4dc4-a7ad-c76bb2ce8b3d" ], + "x-ms-correlation-request-id": [ "a7eb7ae0-1d97-4dc4-a7ad-c76bb2ce8b3d" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:27 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:51:59 GMT" ] }, - "Content": "{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yCNDsrwdn2XY751wymtcT-h_1p4XboyZHmlZVdv6hFk\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:51:41+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -120,7 +120,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "b50f0600-251f-4680-98d1-b78a39288b37" ], + "x-ms-client-request-id": [ "beb3ac55-8ce7-49db-831e-b4d3c8037c72" ], "CommandName": [ "Get-AzAppConfigurationOperationDetail" ], "FullCommandName": [ "Get-AzAppConfigurationOperationDetail_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -133,13 +133,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], - "x-ms-request-id": [ "f8f0678c-95eb-4776-9ae5-4d2762db8a6a" ], - "x-ms-correlation-request-id": [ "f8f0678c-95eb-4776-9ae5-4d2762db8a6a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMzk=;sn=79279239" ], + "x-ms-request-id": [ "6cc53def-3428-42cf-a19e-f7f59dc11819" ], + "x-ms-correlation-request-id": [ "6cc53def-3428-42cf-a19e-f7f59dc11819" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:12 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json index 275687567c0a..9ffcb7baa92f 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationRevision.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "96e03ac4-6c0b-4fc1-bbcd-00c113be666e" ], + "x-ms-client-request-id": [ "192fceaa-dded-4762-a9ea-ebdcbb446640" ], "CommandName": [ "Get-AzAppConfigurationRevision" ], "FullCommandName": [ "Get-AzAppConfigurationRevision_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,22 +19,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], "Accept-Ranges": [ "items" ], - "ETag": [ "\"UAI6LLBOGZNqFHKeqEhGbF7C3kObq5wTYArR--_P2ls\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], - "x-ms-request-id": [ "73b48fd8-1a5a-4f5f-9c2f-6dad8238e47a" ], - "x-ms-correlation-request-id": [ "73b48fd8-1a5a-4f5f-9c2f-6dad8238e47a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:56 GMT" ], + "ETag": [ "\"gNjiPr1R6nEQprDMhQ-W-u7WQeflqLYzSITbpvMI31c\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMzk=;sn=79279239" ], + "x-ms-request-id": [ "7d6f9a07-9e62-4123-9283-8ea56f5bb70f" ], + "x-ms-correlation-request-id": [ "7d6f9a07-9e62-4123-9283-8ea56f5bb70f" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:13 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kvset+json; charset=utf-8" ] }, - "Content": "{\"etag\":\"UAI6LLBOGZNqFHKeqEhGbF7C3kObq5wTYArR--_P2ls\",\"items\":[{\"etag\":\"XUPjwgA6pDMxXlceYzKkL-HvrRwUsVf9p541fpM4Fo8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:33:22+00:00\"},{\"etag\":\"Xm-0KN6RUA6YpIwlnFCXuHVfnwX426FNtPS9Y3YWlG4\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:22+00:00\"},{\"etag\":\"938f3y0RCzJ_cTD5zrg2ooFFwMt7Te8X0Bn3NSdGlrU\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"grKHm_Gxbs7k4GvO0lFEkInnWkuq0VWfUWj_8a6QFn8\",\"key\":\"ghse\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:21+00:00\"},{\"etag\":\"VPuM1smwvV43mXhRJptkgmhUljcyDKpp1Pky92a1Uf0\",\"key\":\"ghse\",\"label\":\"test\",\"content_type\":null,\"value\":\"ezn3bl1k4fu8hcxd\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:33:20+00:00\"}]}", + "Content": "{\"etag\":\"gNjiPr1R6nEQprDMhQ-W-u7WQeflqLYzSITbpvMI31c\",\"items\":[{\"etag\":\"QzYPa9H6FnQ3HAeT3K6EGBdRk7fPlriFYWhzPd1EpPA\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-16T21:51:38+00:00\"},{\"etag\":\"Ycj9oFydl0P1_ILEaacbPFowF36Le8NeeLpRRLtDB3E\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:38+00:00\"},{\"etag\":\"ErEJeQVf1BW4QkI8cOFTTGiocKZk6pdkTUmCVlRfNvI\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value2\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"},{\"etag\":\"FkJdY_hDOrHDxgbndjLGjHHbe7otDTkrD33VQ1EPEbw\",\"key\":\"2wcg\",\"label\":null,\"content_type\":null,\"value\":\"value3\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:36+00:00\"},{\"etag\":\"KPhDImqZ6QGFrrnZTgHMU9kgQfXDRoaZXL0anq9J9JY\",\"key\":\"2wcg\",\"label\":\"test\",\"content_type\":null,\"value\":\"9g70cdjrze4s326u\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:51:35+00:00\"}]}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json index 33938c776393..26daaa137f77 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Get-AzAppConfigurationSnapshot.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "9d3ceffe-74d0-48d6-b778-f576245b58a5" ], + "x-ms-client-request-id": [ "9e3d768b-d3f8-422b-83e4-83e8eff65e3e" ], "CommandName": [ "Get-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,20 +19,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODY=;sn=79468286" ], - "x-ms-request-id": [ "14db4285-6451-48a6-a000-68a3f858ecb1" ], - "x-ms-correlation-request-id": [ "14db4285-6451-48a6-a000-68a3f858ecb1" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyMzk=;sn=79279239" ], + "x-ms-request-id": [ "0bfba4a1-5b99-4d2a-96b3-d199a4715893" ], + "x-ms-correlation-request-id": [ "0bfba4a1-5b99-4d2a-96b3-d199a4715893" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:13 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] }, - "Content": "{\"items\":[{\"etag\":\"natCBvDrpqY5QmFpUtyvjMNOj83DRGDpsObOMtmqeLM\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:25+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "Content": "{\"items\":[{\"etag\":\"yCNDsrwdn2XY751wymtcT-h_1p4XboyZHmlZVdv6hFk\",\"name\":\"opdetail-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:51:41+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", "isContentBase64": false } }, @@ -40,7 +40,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -52,24 +52,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\"" ], + "ETag": [ "\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=getsnap-test1\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=getsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgyODc=;sn=79468287" ], - "x-ms-request-id": [ "46cb32ec-54ba-4988-bf41-f53f4a032e02" ], - "x-ms-correlation-request-id": [ "46cb32ec-54ba-4988-bf41-f53f4a032e02" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:33:57 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDA=;sn=79279240" ], + "x-ms-request-id": [ "bea425e5-d064-4e28-b1cd-0104071c1072" ], + "x-ms-correlation-request-id": [ "bea425e5-d064-4e28-b1cd-0104071c1072" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:14 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:33:57 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:52:14 GMT" ] }, - "Content": "{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57.6144246+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\",\"name\":\"getsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:52:14.105156+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -81,7 +81,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "45e180e6-09e8-4ba1-afb3-0abb38cfd292" ], + "x-ms-client-request-id": [ "79feb76b-c062-46e6-ab30-1f3ffe49d96e" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,13 +93,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:44 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], - "x-ms-request-id": [ "3da8b84c-d812-40e8-8af9-4fe916547944" ], - "x-ms-correlation-request-id": [ "3da8b84c-d812-40e8-8af9-4fe916547944" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDY=;sn=79279246" ], + "x-ms-request-id": [ "480fd9c4-6113-41f3-9087-876c90ce6d8b" ], + "x-ms-correlation-request-id": [ "480fd9c4-6113-41f3-9087-876c90ce6d8b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:44 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -118,7 +118,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "45e180e6-09e8-4ba1-afb3-0abb38cfd292" ], + "x-ms-client-request-id": [ "79feb76b-c062-46e6-ab30-1f3ffe49d96e" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -130,36 +130,36 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:44 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\"" ], + "ETag": [ "\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\"" ], "Link": [ "\u003c/kv?snapshot=getsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], - "x-ms-request-id": [ "7ce10201-db02-4630-b604-344d8faed535" ], - "x-ms-correlation-request-id": [ "7ce10201-db02-4630-b604-344d8faed535" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDY=;sn=79279246" ], + "x-ms-request-id": [ "6e6a0612-52d7-439a-a5ae-6e27eecb9a4d" ], + "x-ms-correlation-request-id": [ "6e6a0612-52d7-439a-a5ae-6e27eecb9a4d" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:44 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:34:08 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:52:15 GMT" ] }, - "Content": "{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:52:14+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, - "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-test1+4": { + "Get-AzAppConfigurationSnapshot+[NoContext]+GetByName+$GET+https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://sanitized.azconfig.io/snapshots?api-version=2024-09-01\u0026name=getsnap-test1", + "RequestUri": "https://sanitized.azconfig.io/snapshots/getsnap-test1?api-version=2024-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "6c656883-7844-40b4-9805-3930884b8f43" ], + "x-ms-client-request-id": [ "e85b00f5-3293-4253-9527-933733f4a38d" ], "CommandName": [ "Get-AzAppConfigurationSnapshot" ], - "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get" ], + "FullCommandName": [ "Get-AzAppConfigurationSnapshot_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.5", "Az.AppConfigurationdata/0.1.0" ], "Authorization": [ "[Filtered]" ] @@ -170,20 +170,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:45 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMTk=;sn=79468319" ], - "x-ms-request-id": [ "0bb1d577-122f-46db-95ad-980fd46bc4a9" ], - "x-ms-correlation-request-id": [ "0bb1d577-122f-46db-95ad-980fd46bc4a9" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:28 GMT" ], + "ETag": [ "\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\"" ], + "Link": [ "\u003c/kv?snapshot=getsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDY=;sn=79279246" ], + "x-ms-request-id": [ "bdd9d866-8011-4e88-a57c-2484c325d3ff" ], + "x-ms-correlation-request-id": [ "bdd9d866-8011-4e88-a57c-2484c325d3ff" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:45 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { - "Content-Type": [ "application/vnd.microsoft.appconfig.snapshotset+json; charset=utf-8" ] + "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], + "Last-Modified": [ "Thu, 16 Apr 2026 21:52:15 GMT" ] }, - "Content": "{\"items\":[{\"etag\":\"yAYgVdf9RTRkMYN1J4_pk5aOl_r4wQU42Gi44xHn31Q\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:33:57+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}]}", + "Content": "{\"etag\":\"yyuMrwPULmvowFP14QPd0gT8DzMRbolEhCLTOdYPNf0\",\"name\":\"getsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:52:14+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json index 05f30e3251c0..197608b043e3 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/New-AzAppConfigurationSnapshot.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test1?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,24 +15,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:29 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:52:45 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\"" ], + "ETag": [ "\"NPii4RcTy3V2L-dyzI7otp9OpyEPKx9L-8k7PjCfhFc\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-test1\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=newsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjA=;sn=79468320" ], - "x-ms-request-id": [ "a93ee19d-b9e4-4fd3-a8c2-68e9f7d72f3b" ], - "x-ms-correlation-request-id": [ "a93ee19d-b9e4-4fd3-a8c2-68e9f7d72f3b" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:29 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDc=;sn=79279247" ], + "x-ms-request-id": [ "97bb10e8-b671-4ac0-bb93-04e3dd17a098" ], + "x-ms-correlation-request-id": [ "97bb10e8-b671-4ac0-bb93-04e3dd17a098" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:52:45 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:34:28 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:52:45 GMT" ] }, - "Content": "{\"etag\":\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\",\"name\":\"newsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:28.9979661+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"NPii4RcTy3V2L-dyzI7otp9OpyEPKx9L-8k7PjCfhFc\",\"name\":\"newsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:52:45.7180779+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -44,7 +44,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9fbf8e66-c9b1-4d58-b31e-5e35d1419fe7" ], + "x-ms-client-request-id": [ "3d54a671-8267-4449-99eb-840b554d64c9" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,13 +56,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjM=;sn=79468323" ], - "x-ms-request-id": [ "d43c252c-8475-496f-ae9f-fcebd9e7d581" ], - "x-ms-correlation-request-id": [ "d43c252c-8475-496f-ae9f-fcebd9e7d581" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDg=;sn=79279248" ], + "x-ms-request-id": [ "e00ff796-d365-4bb4-be44-8949a7068579" ], + "x-ms-correlation-request-id": [ "e00ff796-d365-4bb4-be44-8949a7068579" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -81,7 +81,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9fbf8e66-c9b1-4d58-b31e-5e35d1419fe7" ], + "x-ms-client-request-id": [ "3d54a671-8267-4449-99eb-840b554d64c9" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,23 +93,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\"" ], + "ETag": [ "\"NPii4RcTy3V2L-dyzI7otp9OpyEPKx9L-8k7PjCfhFc\"" ], "Link": [ "\u003c/kv?snapshot=newsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjM=;sn=79468323" ], - "x-ms-request-id": [ "9b4112fc-4f5a-4ce4-9aa4-fa104dd37719" ], - "x-ms-correlation-request-id": [ "9b4112fc-4f5a-4ce4-9aa4-fa104dd37719" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDg=;sn=79279248" ], + "x-ms-request-id": [ "71aceec0-74da-4620-be2a-47213717657b" ], + "x-ms-correlation-request-id": [ "71aceec0-74da-4620-be2a-47213717657b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:34:29 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:52:51 GMT" ] }, - "Content": "{\"etag\":\"UQitEBOV8mg0IjT-OKVHEIfao9fAV6HkDwOKLFMT0to\",\"name\":\"newsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:28+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"NPii4RcTy3V2L-dyzI7otp9OpyEPKx9L-8k7PjCfhFc\",\"name\":\"newsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:52:45+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -117,7 +117,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/newsnap-test2?api-version=2024-09-01", - "Content": "{\"filters\": [{\"key\": \"ghse\"}]}", + "Content": "{\"filters\": [{\"key\": \"2wcg\"}]}", "isContentBase64": false, "Headers": { }, @@ -129,24 +129,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\"" ], + "ETag": [ "\"oiFzJV9IDHM1Mrzh5lqroP1kBVKppXJvLinmuukfXa4\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=newsnap-test2\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=newsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjQ=;sn=79468324" ], - "x-ms-request-id": [ "b17b07b5-3b7c-4a37-a73d-bfdaf49edd03" ], - "x-ms-correlation-request-id": [ "b17b07b5-3b7c-4a37-a73d-bfdaf49edd03" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:34:59 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNDk=;sn=79279249" ], + "x-ms-request-id": [ "c29f4461-eb00-478b-99a7-f31069bcd037" ], + "x-ms-correlation-request-id": [ "c29f4461-eb00-478b-99a7-f31069bcd037" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:16 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:34:59 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:16 GMT" ] }, - "Content": "{\"etag\":\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\",\"name\":\"newsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:59.8984671+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"oiFzJV9IDHM1Mrzh5lqroP1kBVKppXJvLinmuukfXa4\",\"name\":\"newsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:53:16.8012058+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -158,7 +158,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "ea823135-659e-4fe7-9179-3a22b1775d80" ], + "x-ms-client-request-id": [ "e6659a13-7083-43c1-9015-9f2f76f907bd" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -170,13 +170,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjU=;sn=79468325" ], - "x-ms-request-id": [ "9f4da21e-bd7f-45aa-b392-f3f3dc5ad0c6" ], - "x-ms-correlation-request-id": [ "9f4da21e-bd7f-45aa-b392-f3f3dc5ad0c6" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTA=;sn=79279250" ], + "x-ms-request-id": [ "1ce750e3-a10f-4fae-b3c3-26c81202b53e" ], + "x-ms-correlation-request-id": [ "1ce750e3-a10f-4fae-b3c3-26c81202b53e" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:47 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -195,7 +195,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "ea823135-659e-4fe7-9179-3a22b1775d80" ], + "x-ms-client-request-id": [ "e6659a13-7083-43c1-9015-9f2f76f907bd" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateViaJsonString" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -207,23 +207,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\"" ], + "ETag": [ "\"oiFzJV9IDHM1Mrzh5lqroP1kBVKppXJvLinmuukfXa4\"" ], "Link": [ "\u003c/kv?snapshot=newsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjU=;sn=79468325" ], - "x-ms-request-id": [ "f8b0269b-24a6-423b-ab6b-6031e42aa253" ], - "x-ms-correlation-request-id": [ "f8b0269b-24a6-423b-ab6b-6031e42aa253" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:30 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTA=;sn=79279250" ], + "x-ms-request-id": [ "66c7d91a-62c9-4604-b67a-02fa92d35993" ], + "x-ms-correlation-request-id": [ "66c7d91a-62c9-4604-b67a-02fa92d35993" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:47 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:01 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:30 GMT" ] }, - "Content": "{\"etag\":\"1p9ojfYLO03Lf9SPse9yM0gs0uhiFrOFf9U4tTixHLs\",\"name\":\"newsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:34:59+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"oiFzJV9IDHM1Mrzh5lqroP1kBVKppXJvLinmuukfXa4\",\"name\":\"newsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:53:16+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json index 764a3f29d06c..6a3ff82a0072 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationKeyValue.Recording.json @@ -15,22 +15,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjY=;sn=79468326" ], - "x-ms-request-id": [ "e88df289-28df-4750-8358-df63cd1e42f8" ], - "x-ms-correlation-request-id": [ "e88df289-28df-4750-8358-df63cd1e42f8" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "ETag": [ "\"a215HJDIhTc1Plojfg_RRF0fKPePX7_Fa6qgf2Rvx90\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTE=;sn=79279251" ], + "x-ms-request-id": [ "1a4d5382-a991-4b66-9f2f-36002ccb82ac" ], + "x-ms-correlation-request-id": [ "1a4d5382-a991-4b66-9f2f-36002ccb82ac" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:31 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:48 GMT" ] }, - "Content": "{\"etag\":\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:31+00:00\"}", + "Content": "{\"etag\":\"a215HJDIhTc1Plojfg_RRF0fKPePX7_Fa6qgf2Rvx90\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:48+00:00\"}", "isContentBase64": false } }, @@ -41,7 +41,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "56006615-2c72-4b7f-92fc-1e9eef228735" ], + "x-ms-client-request-id": [ "e27bbade-680b-48b4-aa65-fdd069e1e8cf" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,22 +54,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjc=;sn=79468327" ], - "x-ms-request-id": [ "863a1e16-405a-4ae3-8c6d-6b3ea05f06dd" ], - "x-ms-correlation-request-id": [ "863a1e16-405a-4ae3-8c6d-6b3ea05f06dd" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "ETag": [ "\"a215HJDIhTc1Plojfg_RRF0fKPePX7_Fa6qgf2Rvx90\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTI=;sn=79279252" ], + "x-ms-request-id": [ "cc98042a-5158-46dd-b242-16bd25b95f1a" ], + "x-ms-correlation-request-id": [ "cc98042a-5158-46dd-b242-16bd25b95f1a" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:31 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:48 GMT" ] }, - "Content": "{\"etag\":\"U26nAGdixkVUyJA41Oj9qwGvv7sM5SWHVH-BTTHc3Bk\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:31+00:00\"}", + "Content": "{\"etag\":\"a215HJDIhTc1Plojfg_RRF0fKPePX7_Fa6qgf2Rvx90\",\"key\":\"deletetest-key1\",\"label\":null,\"content_type\":null,\"value\":\"to-be-deleted\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:48+00:00\"}", "isContentBase64": false } }, @@ -80,7 +80,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "dd54c3ec-0d2d-4c5e-9db0-678e5fa3b280" ], + "x-ms-client-request-id": [ "30c1c886-6def-4d1c-b65a-83cf2506957c" ], "CommandName": [ "Get-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Get-AzAppConfigurationKeyValue_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,12 +93,12 @@ "Response": { "StatusCode": 404, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjc=;sn=79468327" ], - "x-ms-request-id": [ "bd4cd5cf-f471-4c72-a88b-ef78c7004781" ], - "x-ms-correlation-request-id": [ "bd4cd5cf-f471-4c72-a88b-ef78c7004781" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:31 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTI=;sn=79279252" ], + "x-ms-request-id": [ "8d959abf-10e2-4f0f-86bc-85b0611db6ff" ], + "x-ms-correlation-request-id": [ "8d959abf-10e2-4f0f-86bc-85b0611db6ff" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json index f24b5ed7357b..b581dbb872f4 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Remove-AzAppConfigurationLock.Recording.json @@ -15,22 +15,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"EtKN3uL3I8HZMfQ0LO8fOkwpADlsyAHitvSKc_BC0cw\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjg=;sn=79468328" ], - "x-ms-request-id": [ "137d4e5a-eff4-4436-adee-6f99c484aa4a" ], - "x-ms-correlation-request-id": [ "137d4e5a-eff4-4436-adee-6f99c484aa4a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "ETag": [ "\"jFEedPF4NU7nvSaklqPWLjbBTOB-wdwpS7lUfCSYL2k\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTM=;sn=79279253" ], + "x-ms-request-id": [ "27ae2e04-7095-44a1-9129-47427a748090" ], + "x-ms-correlation-request-id": [ "27ae2e04-7095-44a1-9129-47427a748090" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:48 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:48 GMT" ] }, - "Content": "{\"etag\":\"EtKN3uL3I8HZMfQ0LO8fOkwpADlsyAHitvSKc_BC0cw\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", + "Content": "{\"etag\":\"jFEedPF4NU7nvSaklqPWLjbBTOB-wdwpS7lUfCSYL2k\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:48+00:00\"}", "isContentBase64": false } }, @@ -41,7 +41,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "4f63bed0-3806-4b13-9f77-34ce73b21a79" ], + "x-ms-client-request-id": [ "c824216f-85a2-4fd3-98e7-aa212928b79b" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,22 +54,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"7AObs7l_HlN-HZJAZ6h9EZ0cc9r-QsvRvHblLBcJCis\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMjk=;sn=79468329" ], - "x-ms-request-id": [ "15e50d7b-03f0-4e02-b334-8a5648536881" ], - "x-ms-correlation-request-id": [ "15e50d7b-03f0-4e02-b334-8a5648536881" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "ETag": [ "\"PbbeBwyl3U4i7fDSnFK2A4H95a_ysecS6a8xMwX1MOQ\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTQ=;sn=79279254" ], + "x-ms-request-id": [ "575348f8-c4e9-4633-a75e-e5166ddf2d9d" ], + "x-ms-correlation-request-id": [ "575348f8-c4e9-4633-a75e-e5166ddf2d9d" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:49 GMT" ] }, - "Content": "{\"etag\":\"7AObs7l_HlN-HZJAZ6h9EZ0cc9r-QsvRvHblLBcJCis\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", + "Content": "{\"etag\":\"PbbeBwyl3U4i7fDSnFK2A4H95a_ysecS6a8xMwX1MOQ\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-16T21:53:49+00:00\"}", "isContentBase64": false } }, @@ -80,7 +80,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "0f90e67e-4a82-43fb-b3ad-9b73752280e9" ], + "x-ms-client-request-id": [ "4835a9bd-4d15-4560-8189-0a5c6dbaac06" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,22 +93,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzE=;sn=79468331" ], - "x-ms-request-id": [ "80a0555b-89cf-4580-8ed8-6e74ea4cd2e3" ], - "x-ms-correlation-request-id": [ "80a0555b-89cf-4580-8ed8-6e74ea4cd2e3" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "ETag": [ "\"RLwZCQ11yx63aN2JJbubdTw0HkyXBpGO5Ytr9UZC31M\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTY=;sn=79279256" ], + "x-ms-request-id": [ "6c062c81-7ff7-44e6-8b56-65be002b7bff" ], + "x-ms-correlation-request-id": [ "6c062c81-7ff7-44e6-8b56-65be002b7bff" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:49 GMT" ] }, - "Content": "{\"etag\":\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", + "Content": "{\"etag\":\"RLwZCQ11yx63aN2JJbubdTw0HkyXBpGO5Ytr9UZC31M\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:49+00:00\"}", "isContentBase64": false } }, @@ -119,7 +119,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "17c546c6-823d-421e-8b20-fc05432c1750" ], + "x-ms-client-request-id": [ "0e8db115-b3e1-45bd-8507-cb9356c1a0b8" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -132,22 +132,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzM=;sn=79468333" ], - "x-ms-request-id": [ "96e96a09-3b18-420c-a51c-6ece6a143c5e" ], - "x-ms-correlation-request-id": [ "96e96a09-3b18-420c-a51c-6ece6a143c5e" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:32 GMT" ], + "ETag": [ "\"RLwZCQ11yx63aN2JJbubdTw0HkyXBpGO5Ytr9UZC31M\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTg=;sn=79279258" ], + "x-ms-request-id": [ "554c5819-00e9-4792-9e92-fc354de4d7da" ], + "x-ms-correlation-request-id": [ "554c5819-00e9-4792-9e92-fc354de4d7da" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:32 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:49 GMT" ] }, - "Content": "{\"etag\":\"lGxUTTaIRsv-lTpw8Du45f67crHd4ekX7VOLLGRnuuk\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:32+00:00\"}", + "Content": "{\"etag\":\"RLwZCQ11yx63aN2JJbubdTw0HkyXBpGO5Ytr9UZC31M\",\"key\":\"unlocktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"unlock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:49+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json index 5be3db25be29..53f37d37263f 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationKeyValue.Recording.json @@ -15,22 +15,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzQ=;sn=79468334" ], - "x-ms-request-id": [ "b0d0930f-5df3-4a91-a63c-9d6248b92956" ], - "x-ms-correlation-request-id": [ "b0d0930f-5df3-4a91-a63c-9d6248b92956" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "ETag": [ "\"HjmkSGdSI_6B1fImgp56lGXagBSFDEBYx4-g0TAbmVc\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNTk=;sn=79279259" ], + "x-ms-request-id": [ "4112eee1-3f74-4068-8c2a-c7b0b9452dbc" ], + "x-ms-correlation-request-id": [ "4112eee1-3f74-4068-8c2a-c7b0b9452dbc" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:49 GMT" ] }, - "Content": "{\"etag\":\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", + "Content": "{\"etag\":\"HjmkSGdSI_6B1fImgp56lGXagBSFDEBYx4-g0TAbmVc\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:49+00:00\"}", "isContentBase64": false } }, @@ -41,7 +41,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "13ba123b-153d-4a2c-883c-e6d795f26b98" ], + "x-ms-client-request-id": [ "aaf1b211-2806-487c-b282-4c5c8a365706" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,22 +54,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzU=;sn=79468335" ], - "x-ms-request-id": [ "f3c4a98d-14f3-4ef9-bd3d-e1d0c33f80b6" ], - "x-ms-correlation-request-id": [ "f3c4a98d-14f3-4ef9-bd3d-e1d0c33f80b6" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "ETag": [ "\"HjmkSGdSI_6B1fImgp56lGXagBSFDEBYx4-g0TAbmVc\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjA=;sn=79279260" ], + "x-ms-request-id": [ "914e74a9-3578-4532-bbe3-9d9ff373ede2" ], + "x-ms-correlation-request-id": [ "914e74a9-3578-4532-bbe3-9d9ff373ede2" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:49 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:49 GMT" ] }, - "Content": "{\"etag\":\"eHpKg7utXWLCF66DH3lxHW-H6N1dJItMhn6oZlwL6a8\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", + "Content": "{\"etag\":\"HjmkSGdSI_6B1fImgp56lGXagBSFDEBYx4-g0TAbmVc\",\"key\":\"settest-key1\",\"label\":null,\"content_type\":null,\"value\":\"test-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:49+00:00\"}", "isContentBase64": false } }, @@ -89,22 +89,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzY=;sn=79468336" ], - "x-ms-request-id": [ "0f664815-5c4f-4fc6-9718-6bae78a44f47" ], - "x-ms-correlation-request-id": [ "0f664815-5c4f-4fc6-9718-6bae78a44f47" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "ETag": [ "\"o4jYQVDDs-Li7FEqAG9NmAeK7s2vMGEKTgMdOz2nFSQ\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjE=;sn=79279261" ], + "x-ms-request-id": [ "02008f74-2534-4883-a195-1dded1e738e7" ], + "x-ms-correlation-request-id": [ "02008f74-2534-4883-a195-1dded1e738e7" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:50 GMT" ] }, - "Content": "{\"etag\":\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", + "Content": "{\"etag\":\"o4jYQVDDs-Li7FEqAG9NmAeK7s2vMGEKTgMdOz2nFSQ\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:50+00:00\"}", "isContentBase64": false } }, @@ -115,7 +115,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "8b41e5cb-e8ab-4183-bd9e-8b7ce80a27ce" ], + "x-ms-client-request-id": [ "52340759-4b92-45b9-ac74-7e68d5c4f8ee" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -128,22 +128,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzc=;sn=79468337" ], - "x-ms-request-id": [ "13b67c5c-a69a-49b0-a5d8-3cce21588369" ], - "x-ms-correlation-request-id": [ "13b67c5c-a69a-49b0-a5d8-3cce21588369" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:33 GMT" ], + "ETag": [ "\"o4jYQVDDs-Li7FEqAG9NmAeK7s2vMGEKTgMdOz2nFSQ\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjI=;sn=79279262" ], + "x-ms-request-id": [ "00b7a2dc-6ed6-465e-bcb6-3a87f6bbb98b" ], + "x-ms-correlation-request-id": [ "00b7a2dc-6ed6-465e-bcb6-3a87f6bbb98b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:33 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:50 GMT" ] }, - "Content": "{\"etag\":\"zVAPQFDil_wRdc8G0HM2t8ZA96acWXF4P1LtHurCS78\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:33+00:00\"}", + "Content": "{\"etag\":\"o4jYQVDDs-Li7FEqAG9NmAeK7s2vMGEKTgMdOz2nFSQ\",\"key\":\"setjson-key1\",\"label\":null,\"content_type\":null,\"value\":\"json-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:50+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json index 468e64a7d61f..e68bf9cd6ada 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Set-AzAppConfigurationLock.Recording.json @@ -15,22 +15,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"wq0uSnBpuJus7CejlETaVQhK7AUmli6cTC6O2ISzc5k\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzg=;sn=79468338" ], - "x-ms-request-id": [ "211eedf0-af15-4008-b425-ee33fd9d0145" ], - "x-ms-correlation-request-id": [ "211eedf0-af15-4008-b425-ee33fd9d0145" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "ETag": [ "\"J5liMu3Srr_wCsEpGJ923Ga0loL9j0kaoGNsRHeIVSA\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjM=;sn=79279263" ], + "x-ms-request-id": [ "7252f77c-47d7-4973-bc7a-cf98944f414b" ], + "x-ms-correlation-request-id": [ "7252f77c-47d7-4973-bc7a-cf98944f414b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:50 GMT" ] }, - "Content": "{\"etag\":\"wq0uSnBpuJus7CejlETaVQhK7AUmli6cTC6O2ISzc5k\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"J5liMu3Srr_wCsEpGJ923Ga0loL9j0kaoGNsRHeIVSA\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:50+00:00\"}", "isContentBase64": false } }, @@ -41,7 +41,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "c1ad02e8-fd4d-4365-afd7-a07780a6ab0f" ], + "x-ms-client-request-id": [ "ccd49261-f794-406f-868f-82f9b7829a8d" ], "CommandName": [ "Set-AzAppConfigurationLock" ], "FullCommandName": [ "Set-AzAppConfigurationLock_Put" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,22 +54,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"FN5iJnynlm3CLHuLyYu9-xbj250P0k0qVTMZCALfrxM\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzMzk=;sn=79468339" ], - "x-ms-request-id": [ "339b3308-c0bd-43a0-a9aa-aba063001845" ], - "x-ms-correlation-request-id": [ "339b3308-c0bd-43a0-a9aa-aba063001845" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "ETag": [ "\"7W3WAcmpEqIUw0nWMvtkrfxDe-5ODQlD79vMIexe1nU\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjQ=;sn=79279264" ], + "x-ms-request-id": [ "12b44d2a-71e3-41c9-b181-6ecd201f6d05" ], + "x-ms-correlation-request-id": [ "12b44d2a-71e3-41c9-b181-6ecd201f6d05" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:50 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:50 GMT" ] }, - "Content": "{\"etag\":\"FN5iJnynlm3CLHuLyYu9-xbj250P0k0qVTMZCALfrxM\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"7W3WAcmpEqIUw0nWMvtkrfxDe-5ODQlD79vMIexe1nU\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":true,\"last_modified\":\"2026-04-16T21:53:50+00:00\"}", "isContentBase64": false } }, @@ -80,7 +80,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "fe70a360-13d0-453f-bea6-5253db5d7d9c" ], + "x-ms-client-request-id": [ "465ecb9d-3343-494e-84ac-b1f99f69db5e" ], "CommandName": [ "Remove-AzAppConfigurationLock" ], "FullCommandName": [ "Remove-AzAppConfigurationLock_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,22 +93,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDE=;sn=79468341" ], - "x-ms-request-id": [ "844e9542-01dd-40cd-8472-15745ae7c92e" ], - "x-ms-correlation-request-id": [ "844e9542-01dd-40cd-8472-15745ae7c92e" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "ETag": [ "\"jizEu3Ai7ia4pB1OJMO6QvjmxoWepXNPQIC2OjHwCkE\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjY=;sn=79279266" ], + "x-ms-request-id": [ "4a2876b6-26eb-478d-95b2-8f0bc74521f6" ], + "x-ms-correlation-request-id": [ "4a2876b6-26eb-478d-95b2-8f0bc74521f6" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:51 GMT" ] }, - "Content": "{\"etag\":\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"jizEu3Ai7ia4pB1OJMO6QvjmxoWepXNPQIC2OjHwCkE\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:51+00:00\"}", "isContentBase64": false } }, @@ -119,7 +119,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "5a8e430a-5267-4ba9-9c96-8ba33b2701e2" ], + "x-ms-client-request-id": [ "a5137234-7d23-471e-950a-7d0aabfe7438" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -132,22 +132,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDM=;sn=79468343" ], - "x-ms-request-id": [ "001c16c0-fe93-4b94-9f67-9abbe235ab78" ], - "x-ms-correlation-request-id": [ "001c16c0-fe93-4b94-9f67-9abbe235ab78" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "ETag": [ "\"jizEu3Ai7ia4pB1OJMO6QvjmxoWepXNPQIC2OjHwCkE\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjg=;sn=79279268" ], + "x-ms-request-id": [ "fea52b40-cda8-45fa-b4a4-dacbef21f12b" ], + "x-ms-correlation-request-id": [ "fea52b40-cda8-45fa-b4a4-dacbef21f12b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:51 GMT" ] }, - "Content": "{\"etag\":\"T97FR6oHJd_06v6fSL3Kuf61nRtUv4DMXnKELYmkbe8\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"jizEu3Ai7ia4pB1OJMO6QvjmxoWepXNPQIC2OjHwCkE\",\"key\":\"locktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"lock-value\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:51+00:00\"}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json index 9bb9a854ce8e..7425e002baa5 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationKeyValue.Recording.json @@ -15,22 +15,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDQ=;sn=79468344" ], - "x-ms-request-id": [ "2e5b1db7-355f-421a-afa2-e153f573202d" ], - "x-ms-correlation-request-id": [ "2e5b1db7-355f-421a-afa2-e153f573202d" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:34 GMT" ], + "ETag": [ "\"zjNmKfK9h8vpIk-ulUXwCER2GJxUWTZoy4mA0p-iK1c\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjk=;sn=79279269" ], + "x-ms-request-id": [ "e767966c-8d0e-4a66-9b35-3bbb2fc386ab" ], + "x-ms-correlation-request-id": [ "e767966c-8d0e-4a66-9b35-3bbb2fc386ab" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:51 GMT" ] }, - "Content": "{\"etag\":\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"zjNmKfK9h8vpIk-ulUXwCER2GJxUWTZoy4mA0p-iK1c\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:51+00:00\"}", "isContentBase64": false } }, @@ -41,7 +41,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "b5911402-a318-43e8-8976-17bb4789c756" ], + "x-ms-client-request-id": [ "4290b05b-0c64-4b81-ae48-1a068bd77cf6" ], "CommandName": [ "Test-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -54,19 +54,19 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDQ=;sn=79468344" ], - "x-ms-request-id": [ "1c43b5fd-0efd-4853-a936-93c580916e7b" ], - "x-ms-correlation-request-id": [ "1c43b5fd-0efd-4853-a936-93c580916e7b" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "ETag": [ "\"zjNmKfK9h8vpIk-ulUXwCER2GJxUWTZoy4mA0p-iK1c\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNjk=;sn=79279269" ], + "x-ms-request-id": [ "38f0fa12-21ec-496b-be66-f1c15519437c" ], + "x-ms-correlation-request-id": [ "38f0fa12-21ec-496b-be66-f1c15519437c" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:51 GMT" ] }, "Content": null, "isContentBase64": false @@ -79,7 +79,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "b14ce992-fcdd-44cc-ba65-8ffcf3b33612" ], + "x-ms-client-request-id": [ "79a3ce52-3a7d-4282-bc65-de46a33dc7ff" ], "CommandName": [ "Remove-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Remove-AzAppConfigurationKeyValue_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -92,22 +92,22 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], - "x-ms-request-id": [ "b03fdfd6-ae0a-4f1b-9144-d98de48a9672" ], - "x-ms-correlation-request-id": [ "b03fdfd6-ae0a-4f1b-9144-d98de48a9672" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "ETag": [ "\"zjNmKfK9h8vpIk-ulUXwCER2GJxUWTZoy4mA0p-iK1c\"" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzA=;sn=79279270" ], + "x-ms-request-id": [ "5c6db485-fe11-44c7-b3b4-2eeb2f60cd39" ], + "x-ms-correlation-request-id": [ "5c6db485-fe11-44c7-b3b4-2eeb2f60cd39" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:51 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:34 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:51 GMT" ] }, - "Content": "{\"etag\":\"GcAEUwUe8zDHCf1ScLw4VYIa_lXZIvzyW-O4v2Hl1gs\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-10T21:35:34+00:00\"}", + "Content": "{\"etag\":\"zjNmKfK9h8vpIk-ulUXwCER2GJxUWTZoy4mA0p-iK1c\",\"key\":\"checktest-key1\",\"label\":null,\"content_type\":null,\"value\":\"exists\",\"tags\":{},\"locked\":false,\"last_modified\":\"2026-04-16T21:53:51+00:00\"}", "isContentBase64": false } }, @@ -118,7 +118,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "568a4636-32c9-42b4-acd1-71d0bb929031" ], + "x-ms-client-request-id": [ "d35e4657-5982-468a-854e-fa7c240b770f" ], "CommandName": [ "Test-AzAppConfigurationKeyValue" ], "FullCommandName": [ "Test-AzAppConfigurationKeyValue_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -131,12 +131,12 @@ "Response": { "StatusCode": 404, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:52 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], - "x-ms-request-id": [ "ffc8b9d0-e221-43ca-b0ce-9e8fad7fbb60" ], - "x-ms-correlation-request-id": [ "ffc8b9d0-e221-43ca-b0ce-9e8fad7fbb60" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:35 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzA=;sn=79279270" ], + "x-ms-request-id": [ "1aede7c8-8d95-41ac-a628-c0cd03bd6739" ], + "x-ms-correlation-request-id": [ "1aede7c8-8d95-41ac-a628-c0cd03bd6739" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:52 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json index e8d3d0c894d9..61a5794e112a 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Test-AzAppConfigurationSnapshot.Recording.json @@ -6,7 +6,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "1efabd10-75e1-46c1-b992-3b4757d7a910" ], + "x-ms-client-request-id": [ "d2e98d03-4d9a-43d0-ac31-c66fb3ec2b5b" ], "CommandName": [ "Test-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -19,12 +19,12 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:52 GMT" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDU=;sn=79468345" ], - "x-ms-request-id": [ "c530cc5f-2bc3-4a9a-8b74-da9fc347e8d1" ], - "x-ms-correlation-request-id": [ "c530cc5f-2bc3-4a9a-8b74-da9fc347e8d1" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzA=;sn=79279270" ], + "x-ms-request-id": [ "c7c2821e-5ffb-46aa-b492-e7f196448288" ], + "x-ms-correlation-request-id": [ "c7c2821e-5ffb-46aa-b492-e7f196448288" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:52 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -39,7 +39,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/testsnap-test1?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -51,24 +51,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:53:53 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "ETag": [ "\"_MRvEGrf1jkpsPRAGwetzwWFMredO09myAKlBfIDj1M\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=testsnap-test1\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDY=;sn=79468346" ], - "x-ms-request-id": [ "4aff6df9-9740-411b-9e65-938468541982" ], - "x-ms-correlation-request-id": [ "4aff6df9-9740-411b-9e65-938468541982" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:35:36 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzE=;sn=79279271" ], + "x-ms-request-id": [ "10cbc85d-d3de-47e6-bcb9-d0f79f51d781" ], + "x-ms-correlation-request-id": [ "10cbc85d-d3de-47e6-bcb9-d0f79f51d781" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:53:53 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:36 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:53:53 GMT" ] }, - "Content": "{\"etag\":\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\",\"name\":\"testsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:35:36.1933854+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"_MRvEGrf1jkpsPRAGwetzwWFMredO09myAKlBfIDj1M\",\"name\":\"testsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:53:53.0136396+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -80,7 +80,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "455371fa-2383-4f7d-ae54-7e444f56e1cb" ], + "x-ms-client-request-id": [ "2826cddd-4efc-4733-b341-ad1af66ee320" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -92,13 +92,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], - "x-ms-request-id": [ "749fc9f9-1007-4a8e-a4f7-e6dd707fbcbd" ], - "x-ms-correlation-request-id": [ "749fc9f9-1007-4a8e-a4f7-e6dd707fbcbd" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzI=;sn=79279272" ], + "x-ms-request-id": [ "13811cdd-7e28-4c08-a039-4df460abe307" ], + "x-ms-correlation-request-id": [ "13811cdd-7e28-4c08-a039-4df460abe307" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -117,7 +117,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "455371fa-2383-4f7d-ae54-7e444f56e1cb" ], + "x-ms-client-request-id": [ "2826cddd-4efc-4733-b341-ad1af66ee320" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -129,23 +129,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "ETag": [ "\"_MRvEGrf1jkpsPRAGwetzwWFMredO09myAKlBfIDj1M\"" ], "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], - "x-ms-request-id": [ "5999ae04-a1b6-486a-b9fc-8df4e8cacc2b" ], - "x-ms-correlation-request-id": [ "5999ae04-a1b6-486a-b9fc-8df4e8cacc2b" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzI=;sn=79279272" ], + "x-ms-request-id": [ "d6310914-97ca-49a9-8aa1-f75186ca1912" ], + "x-ms-correlation-request-id": [ "d6310914-97ca-49a9-8aa1-f75186ca1912" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:58 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:13 GMT" ] }, - "Content": "{\"etag\":\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\",\"name\":\"testsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:35:36+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"_MRvEGrf1jkpsPRAGwetzwWFMredO09myAKlBfIDj1M\",\"name\":\"testsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:53:53+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -156,7 +156,7 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-client-request-id": [ "7103e7a1-925c-408c-ab84-34c6a0e2e42c" ], + "x-ms-client-request-id": [ "1ff799fc-6454-4f36-ae2b-fdf7d630c728" ], "CommandName": [ "Test-AzAppConfigurationSnapshot" ], "FullCommandName": [ "Test-AzAppConfigurationSnapshot_Check1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -169,20 +169,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"ohrnmcP8YTopJQb78qe_5fNH5vT3N_2tmhgCzVjO0v4\"" ], + "ETag": [ "\"_MRvEGrf1jkpsPRAGwetzwWFMredO09myAKlBfIDj1M\"" ], "Link": [ "\u003c/kv?snapshot=testsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDc=;sn=79468347" ], - "x-ms-request-id": [ "8bcab0b0-4a03-465f-ad2b-09b387e1e31c" ], - "x-ms-correlation-request-id": [ "8bcab0b0-4a03-465f-ad2b-09b387e1e31c" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:06 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzI=;sn=79279272" ], + "x-ms-request-id": [ "e93077eb-6305-41d8-97d0-d34b88de3caa" ], + "x-ms-correlation-request-id": [ "e93077eb-6305-41d8-97d0-d34b88de3caa" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:23 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:35:58 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:13 GMT" ] }, "Content": null, "isContentBase64": false diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json index 68a21a44ab01..1712e440e5ed 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/Update-AzAppConfigurationSnapshot.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test1?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -15,24 +15,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:07 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:24 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\"" ], + "ETag": [ "\"jX2ZIbCw5CZYeWnt0ezw522X8lLzjIbAX5KUzjb2eAg\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-test1\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNDg=;sn=79468348" ], - "x-ms-request-id": [ "f0e87580-fb9f-400c-9eec-4fe155054256" ], - "x-ms-correlation-request-id": [ "f0e87580-fb9f-400c-9eec-4fe155054256" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:07 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzM=;sn=79279273" ], + "x-ms-request-id": [ "634f9e33-c184-4e26-bc93-d1f68c743162" ], + "x-ms-correlation-request-id": [ "634f9e33-c184-4e26-bc93-d1f68c743162" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:24 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:07 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:24 GMT" ] }, - "Content": "{\"etag\":\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\",\"name\":\"updsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07.5487102+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"jX2ZIbCw5CZYeWnt0ezw522X8lLzjIbAX5KUzjb2eAg\",\"name\":\"updsnap-test1\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:24.5345489+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -44,7 +44,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9ec91919-d5d5-477f-ae7e-e6235381447f" ], + "x-ms-client-request-id": [ "1f541afa-fe6b-4ac9-8b64-26c219aba98c" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -56,13 +56,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTA=;sn=79468350" ], - "x-ms-request-id": [ "5ee579f1-76a8-40c8-b41b-a862e350c22f" ], - "x-ms-correlation-request-id": [ "5ee579f1-76a8-40c8-b41b-a862e350c22f" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzQ=;sn=79279274" ], + "x-ms-request-id": [ "5251f706-ff29-4882-b51a-8e3030fff989" ], + "x-ms-correlation-request-id": [ "5251f706-ff29-4882-b51a-8e3030fff989" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -81,7 +81,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9ec91919-d5d5-477f-ae7e-e6235381447f" ], + "x-ms-client-request-id": [ "1f541afa-fe6b-4ac9-8b64-26c219aba98c" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -93,23 +93,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\"" ], + "ETag": [ "\"jX2ZIbCw5CZYeWnt0ezw522X8lLzjIbAX5KUzjb2eAg\"" ], "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTA=;sn=79468350" ], - "x-ms-request-id": [ "8513c0ee-1111-4e2e-b744-dcee8ca2fcc1" ], - "x-ms-correlation-request-id": [ "8513c0ee-1111-4e2e-b744-dcee8ca2fcc1" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzQ=;sn=79279274" ], + "x-ms-request-id": [ "2e8fbf52-9b26-4f28-81f9-c4e801486995" ], + "x-ms-correlation-request-id": [ "2e8fbf52-9b26-4f28-81f9-c4e801486995" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:10 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:32 GMT" ] }, - "Content": "{\"etag\":\"LHpObYjQurAq6avgGT-OwHF6SU9lOElDrwb6tc3et48\",\"name\":\"updsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"jX2ZIbCw5CZYeWnt0ezw522X8lLzjIbAX5KUzjb2eAg\",\"name\":\"updsnap-test1\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:24+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -129,23 +129,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"3FKv2WLpwfuby5afr4XLC4G2k1HcB_lnG8YNfqyjRBk\"" ], + "ETag": [ "\"DTpCiIvCq2k2NBuE7i6Zyx2T-6lqOM_amtdqCXXogrU\"" ], "Link": [ "\u003c/kv?snapshot=updsnap-test1\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTE=;sn=79468351" ], - "x-ms-request-id": [ "11b5d0b5-bcb0-4092-8429-73c57a775547" ], - "x-ms-correlation-request-id": [ "11b5d0b5-bcb0-4092-8429-73c57a775547" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzU=;sn=79279275" ], + "x-ms-request-id": [ "6b43c08a-85ee-493a-9974-a1e46932e0ec" ], + "x-ms-correlation-request-id": [ "6b43c08a-85ee-493a-9974-a1e46932e0ec" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:10 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:32 GMT" ] }, - "Content": "{\"etag\":\"3FKv2WLpwfuby5afr4XLC4G2k1HcB_lnG8YNfqyjRBk\",\"name\":\"updsnap-test1\",\"status\":\"archived\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:07+00:00\",\"expires\":\"2026-05-10T21:36:38.2604282+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"DTpCiIvCq2k2NBuE7i6Zyx2T-6lqOM_amtdqCXXogrU\",\"name\":\"updsnap-test1\",\"status\":\"archived\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:24+00:00\",\"expires\":\"2026-05-16T21:54:55.5611968+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -153,7 +153,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://sanitized.azconfig.io/snapshots/updsnap-test2?api-version=2024-09-01", - "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"ghse\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"filters\": [\r\n {\r\n \"key\": \"2wcg\"\r\n }\r\n ]\r\n}", "isContentBase64": false, "Headers": { }, @@ -165,24 +165,24 @@ "Response": { "StatusCode": 201, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\"" ], + "ETag": [ "\"Y1ih9bZgFMjE4BdiBoS3QhAW0ZvYNIcocl0bcYeRoKI\"" ], "Operation-Location": [ "https://sanitized.azconfig.io/operations?snapshot=updsnap-test2\u0026api-version=2024-09-01" ], "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTI=;sn=79468352" ], - "x-ms-request-id": [ "1bcb8337-d6fa-4dc3-ad43-5ba255c39dd7" ], - "x-ms-correlation-request-id": [ "1bcb8337-d6fa-4dc3-ad43-5ba255c39dd7" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:36:38 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkyNzY=;sn=79279276" ], + "x-ms-request-id": [ "d9532389-7763-455a-bcd0-5c0a5479efea" ], + "x-ms-correlation-request-id": [ "d9532389-7763-455a-bcd0-5c0a5479efea" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:54:55 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:38 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:55 GMT" ] }, - "Content": "{\"etag\":\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\",\"name\":\"updsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38.425713+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"Y1ih9bZgFMjE4BdiBoS3QhAW0ZvYNIcocl0bcYeRoKI\",\"name\":\"updsnap-test2\",\"status\":\"provisioning\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:55.7147968+00:00\",\"size\":0,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -194,7 +194,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9b684df4-24d6-4deb-8adf-9649a52abe53" ], + "x-ms-client-request-id": [ "57bf940c-e081-4a20-9694-2e504379a1b7" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -206,13 +206,13 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:37:08 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTM=;sn=79468353" ], - "x-ms-request-id": [ "1a56d08e-3148-405c-b06b-abab53eaf9ca" ], - "x-ms-correlation-request-id": [ "1a56d08e-3148-405c-b06b-abab53eaf9ca" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:37:08 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkzMDk=;sn=79279309" ], + "x-ms-request-id": [ "d3b2e69c-245f-41f4-8132-af13e8dda3d9" ], + "x-ms-correlation-request-id": [ "d3b2e69c-245f-41f4-8132-af13e8dda3d9" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, @@ -231,7 +231,7 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-client-request-id": [ "9b684df4-24d6-4deb-8adf-9649a52abe53" ], + "x-ms-client-request-id": [ "57bf940c-e081-4a20-9694-2e504379a1b7" ], "CommandName": [ "New-AzAppConfigurationSnapshot" ], "FullCommandName": [ "New-AzAppConfigurationSnapshot_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -243,23 +243,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\"" ], + "ETag": [ "\"Y1ih9bZgFMjE4BdiBoS3QhAW0ZvYNIcocl0bcYeRoKI\"" ], "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTM=;sn=79468353" ], - "x-ms-request-id": [ "e15dcd9a-8836-4bdc-bf7f-3c2463551df3" ], - "x-ms-correlation-request-id": [ "e15dcd9a-8836-4bdc-bf7f-3c2463551df3" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkzMDk=;sn=79279309" ], + "x-ms-request-id": [ "145cfbcc-545a-4f62-8d9b-7257a583986b" ], + "x-ms-correlation-request-id": [ "145cfbcc-545a-4f62-8d9b-7257a583986b" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:51 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:57 GMT" ] }, - "Content": "{\"etag\":\"bfutITIOIlXs5IYnItznOvPOIcXYQbBcVSOiz_7ozx8\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"Y1ih9bZgFMjE4BdiBoS3QhAW0ZvYNIcocl0bcYeRoKI\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:55+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -279,23 +279,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"o001ZvXBy01yGx76lDBEPRWHQlX7tZrosX_lT0PlW3E\"" ], + "ETag": [ "\"JfFboXC7Gxb-J6ux7MwIwuptUFF8MEJpb2ZwdzIcx9c\"" ], "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTQ=;sn=79468354" ], - "x-ms-request-id": [ "b2daf50b-531d-41c0-afaa-42f64c90a73a" ], - "x-ms-correlation-request-id": [ "b2daf50b-531d-41c0-afaa-42f64c90a73a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkzMTA=;sn=79279310" ], + "x-ms-request-id": [ "ef7587a5-2b1c-4def-a133-0045b05accfa" ], + "x-ms-correlation-request-id": [ "ef7587a5-2b1c-4def-a133-0045b05accfa" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:36:51 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:54:57 GMT" ] }, - "Content": "{\"etag\":\"o001ZvXBy01yGx76lDBEPRWHQlX7tZrosX_lT0PlW3E\",\"name\":\"updsnap-test2\",\"status\":\"archived\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"expires\":\"2026-05-10T21:37:09.1693572+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"JfFboXC7Gxb-J6ux7MwIwuptUFF8MEJpb2ZwdzIcx9c\",\"name\":\"updsnap-test2\",\"status\":\"archived\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:55+00:00\",\"expires\":\"2026-05-16T21:55:26.6895757+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } }, @@ -315,23 +315,23 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Transfer-Encoding": [ "chunked" ], "Connection": [ "keep-alive" ], - "ETag": [ "\"WLfD0cvTTYl2Us5EQouWquZ3XBYj2oLrUFamUwyltQw\"" ], + "ETag": [ "\"0YMwev0YLshoL0Hw2veJtyADqLaAxRMtva8a_Z4Fex0\"" ], "Link": [ "\u003c/kv?snapshot=updsnap-test2\u0026api-version=2024-09-01\u003e; rel=\"items\"" ], - "Sync-Token": [ "zAJw6V16=MTU6MTkjNzk0NjgzNTU=;sn=79468355" ], - "x-ms-request-id": [ "4d9e882b-0a72-470b-82a2-d0f9b0bb652a" ], - "x-ms-correlation-request-id": [ "4d9e882b-0a72-470b-82a2-d0f9b0bb652a" ], - "x-ms-date": [ "Fri, 10 Apr 2026 21:37:09 GMT" ], + "Sync-Token": [ "zAJw6V16=MTI6MTkjNzkyNzkzMTE=;sn=79279311" ], + "x-ms-request-id": [ "16adabfc-de85-4cc6-91cf-eeeadf6a9af3" ], + "x-ms-correlation-request-id": [ "16adabfc-de85-4cc6-91cf-eeeadf6a9af3" ], + "x-ms-date": [ "Thu, 16 Apr 2026 21:55:26 GMT" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Access-Control-Allow-Origin": [ "*" ] }, "ContentHeaders": { "Content-Type": [ "application/vnd.microsoft.appconfig.snapshot+json; charset=utf-8" ], - "Last-Modified": [ "Fri, 10 Apr 2026 21:37:09 GMT" ] + "Last-Modified": [ "Thu, 16 Apr 2026 21:55:26 GMT" ] }, - "Content": "{\"etag\":\"WLfD0cvTTYl2Us5EQouWquZ3XBYj2oLrUFamUwyltQw\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"ghse\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-10T21:36:38+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", + "Content": "{\"etag\":\"0YMwev0YLshoL0Hw2veJtyADqLaAxRMtva8a_Z4Fex0\",\"name\":\"updsnap-test2\",\"status\":\"ready\",\"filters\":[{\"key\":\"2wcg\",\"label\":null,\"tags\":[]}],\"composition_type\":\"key\",\"created\":\"2026-04-16T21:54:55+00:00\",\"size\":1000,\"items_count\":0,\"tags\":{},\"retention_period\":2592000}", "isContentBase64": false } } diff --git a/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json index 7722102f8cae..4b6c4dd7dbd8 100644 --- a/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json +++ b/src/AppConfiguration/AppConfigurationdata.Autorest/test/env.json @@ -1,10 +1,10 @@ { + "appStoreName1": "azujma", + "endpoint": "https://sanitized.azconfig.io", + "resourceGroup": "azpstestgroup-vqtxwf", "SubscriptionId": "00000000-0000-0000-0000-000000000000", + "appStoreName2": "azu67c", + "key": "2wcg", "location": "eastus", - "Tenant": "00000000-0000-0000-0000-000000000000", - "endpoint": "https://sanitized.azconfig.io", - "key": "ghse", - "appStoreName1": "az1vu5", - "appStoreName2": "azuihk", - "resourceGroup": "azpstestgroup-tduw7y" + "Tenant": "00000000-0000-0000-0000-000000000000" }