Skip to content

Commit 04c50d3

Browse files
mrm9084Copilot
andauthored
App Config RP 2024-06-01 (#29313)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 94c9958 commit 04c50d3

44 files changed

Lines changed: 5988 additions & 612 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AppConfiguration")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/AppConfiguration/AppConfiguration.Autorest/README.md

Lines changed: 71 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ For information on how to develop for `Az.AppConfiguration`, see [how-to.md](how
2525

2626
---
2727
## Generation Requirements
28-
Use of the beta version of `autorest.powershell` generator requires the following:
29-
- [NodeJS LTS](https://nodejs.org) (10.15.x LTS preferred)
30-
- **Note**: It *will not work* with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes.
31-
> If you want an easy way to install and update Node, [NVS - Node Version Switcher](../nodejs/installing-via-nvs.md) or [NVM - Node Version Manager](../nodejs/installing-via-nvm.md) is recommended.
32-
- [AutoRest](https://aka.ms/autorest) v3 beta <br>`npm install -g autorest@beta`<br>&nbsp;
33-
- PowerShell 6.0 or greater
28+
Use of the `autorest.powershell` generator requires the following:
29+
- [NodeJS LTS](https://nodejs.org) (18.x LTS or greater)
30+
- [AutoRest](https://aka.ms/autorest) v3 <br>`npm install -g autorest@latest`<br>&nbsp;
31+
- PowerShell 7.0 or greater
3432
- If you don't have it installed, you can use the cross-platform npm package <br>`npm install -g pwsh`<br>&nbsp;
35-
- .NET Core SDK 2.0 or greater
36-
- If you don't have it installed, you can use the cross-platform npm package <br>`npm install -g dotnet-sdk-2.2`<br>&nbsp;
33+
- .NET SDK 8.0 or greater
34+
- If you don't have it installed, download from [https://dotnet.microsoft.com/download](https://dotnet.microsoft.com/download)<br>&nbsp;
3735

3836
## Run Generation
3937
In this directory, run AutoRest:
@@ -44,17 +42,37 @@ In this directory, run AutoRest:
4442
> see https://aka.ms/autorest
4543
4644
``` yaml
47-
commit: 7d6b4765562b238310ea80d652ac08597fec0476
45+
commit: 45cbb1a2b5a68c01b7182dbcaa57c3052f992647
4846
require:
4947
- $(this-folder)/../../readme.azure.noprofile.md
5048
input-file:
51-
- $(repo)/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/appconfiguration.json
49+
- $(repo)/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-06-01/appconfiguration.json
5250

5351
module-version: 1.0.0
5452
title: AppConfiguration
5553
subject-prefix: $(service-name)
5654

5755
directive:
56+
# Strip x-ms-identifiers extension to avoid schema validation errors
57+
- from: swagger-document
58+
where: $.definitions.OperationDefinitionListResult.properties.value
59+
transform: delete $['x-ms-identifiers']
60+
- from: swagger-document
61+
where: $.definitions.ServiceSpecification.properties.logSpecifications
62+
transform: delete $['x-ms-identifiers']
63+
- from: swagger-document
64+
where: $.definitions.ServiceSpecification.properties.metricSpecifications
65+
transform: delete $['x-ms-identifiers']
66+
- from: swagger-document
67+
where: $.definitions.MetricSpecification.properties.dimensions
68+
transform: delete $['x-ms-identifiers']
69+
- from: swagger-document
70+
where: $.definitions.ErrorDetails.properties.additionalInfo
71+
transform: delete $['x-ms-identifiers']
72+
- from: swagger-document
73+
where: $.definitions.SnapshotProperties.properties.filters
74+
transform: delete $['x-ms-identifiers']
75+
5876
- where:
5977
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
6078
remove: true
@@ -125,4 +143,47 @@ directive:
125143
subject: ^ConfigurationStoreDeleted$
126144
set:
127145
subject: ConfigurationDeletedStore
146+
147+
# Snapshot operations are ARM proxies for data plane; exclude from this module
148+
- where:
149+
subject: ^Snapshot$
150+
remove: true
151+
152+
# CreateMode is create-only (x-ms-mutability: create), not applicable to Update
153+
- where:
154+
verb: Update
155+
subject: ConfigurationStore
156+
parameter-name: CreateMode
157+
hide: true
158+
159+
# Location is create-only on stores, not updatable
160+
- where:
161+
verb: Update
162+
subject: ConfigurationStore
163+
parameter-name: Location
164+
hide: true
165+
166+
# Location is required when creating a replica
167+
- from: swagger-document
168+
where: $.definitions.Replica
169+
transform: >
170+
if (!$.required) { $.required = []; }
171+
if (!$.required.includes('location')) { $.required.push('location'); }
172+
173+
# Hide Update-AzAppConfigurationReplica; replicas have no updatable properties
174+
- where:
175+
verb: Update
176+
subject: Replica
177+
hide: true
178+
179+
# Format output
180+
- where:
181+
model-name: Replica
182+
set:
183+
format-table:
184+
properties:
185+
- Name
186+
- Location
187+
- ProvisioningState
188+
- ResourceGroupName
128189
```
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "configurationStores/replicas",
3+
"apiVersion": "2024-06-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.appconfiguration"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzAppConfigurationReplica",
10+
"description": "Gets the properties of the specified replica.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationreplica"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-ConfigStoreName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Gets the properties of the specified replica.",
30+
"parameters": [
31+
{
32+
"name": "-ConfigStoreName",
33+
"value": "[Path.configStoreName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.replicaName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzAppConfigurationReplica",
53+
"description": "Deletes a replica.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.appconfiguration/remove-azappconfigurationreplica"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ConfigStoreName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Deletes a replica.",
73+
"parameters": [
74+
{
75+
"name": "-ConfigStoreName",
76+
"value": "[Path.configStoreName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.replicaName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

src/AppConfiguration/AppConfiguration.Autorest/UX/Microsoft.AppConfiguration/configurationStores.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "configurationStores",
3-
"apiVersion": "2022-05-01",
3+
"apiVersion": "2024-06-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.appconfiguration"
66
},

src/AppConfiguration/AppConfiguration.Autorest/UX/Microsoft.AppConfiguration/locations-deletedConfigurationStores.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "locations/deletedConfigurationStores",
3-
"apiVersion": "2022-05-01",
3+
"apiVersion": "2024-06-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.appconfiguration"
66
},
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"name": "Get-AzAppConfigurationDeletedStore",
48-
"description": "Gets a deleted Azure app configuration store.",
48+
"description": "Gets a deleted Azure App Configuration store.",
4949
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}",
5050
"help": {
5151
"learnMore": {
@@ -63,7 +63,7 @@
6363
},
6464
"examples": [
6565
{
66-
"description": "Gets a deleted Azure app configuration store.",
66+
"description": "Gets a deleted Azure App Configuration store.",
6767
"parameters": [
6868
{
6969
"name": "-Location",

src/AppConfiguration/AppConfiguration.Autorest/docs/Az.AppConfiguration.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.AppConfiguration
3-
Module Guid: eb7a20d7-4675-4932-b491-c24a29f7519e
3+
Module Guid: 6017deb0-bdea-4770-ab56-df3ec463176b
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.appconfiguration
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -15,26 +15,35 @@ Microsoft Azure PowerShell: AppConfiguration cmdlets
1515
Permanently deletes the specified configuration store.
1616

1717
### [Get-AzAppConfigurationDeletedStore](Get-AzAppConfigurationDeletedStore.md)
18-
Gets a deleted Azure app configuration store.
18+
Gets a deleted Azure App Configuration store.
19+
20+
### [Get-AzAppConfigurationReplica](Get-AzAppConfigurationReplica.md)
21+
Gets the properties of the specified replica.
1922

2023
### [Get-AzAppConfigurationStore](Get-AzAppConfigurationStore.md)
2124
Get or list app configuration stores.
2225

2326
### [Get-AzAppConfigurationStoreKey](Get-AzAppConfigurationStoreKey.md)
2427
Lists the access key for the specified configuration store.
2528

29+
### [New-AzAppConfigurationReplica](New-AzAppConfigurationReplica.md)
30+
Create a replica with the specified parameters.
31+
2632
### [New-AzAppConfigurationStore](New-AzAppConfigurationStore.md)
27-
create a configuration store with the specified parameters.
33+
Create a configuration store with the specified parameters.
2834

2935
### [New-AzAppConfigurationStoreKey](New-AzAppConfigurationStoreKey.md)
3036
Regenerates an access key for the specified configuration store.
3137

38+
### [Remove-AzAppConfigurationReplica](Remove-AzAppConfigurationReplica.md)
39+
Deletes a replica.
40+
3241
### [Remove-AzAppConfigurationStore](Remove-AzAppConfigurationStore.md)
3342
Deletes a configuration store.
3443

3544
### [Test-AzAppConfigurationStoreNameAvailability](Test-AzAppConfigurationStoreNameAvailability.md)
3645
Checks whether the configuration store name is available for use.
3746

3847
### [Update-AzAppConfigurationStore](Update-AzAppConfigurationStore.md)
39-
update a configuration store with the specified parameters.
48+
Update a configuration store with the specified parameters.
4049

0 commit comments

Comments
 (0)