Skip to content

Commit 7572b87

Browse files
committed
appconfiguration scenario
1 parent cbc314b commit 7572b87

File tree

2 files changed

+126
-0
lines changed
  • specification/appconfiguration/resource-manager

2 files changed

+126
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json
2+
scope: ResourceGroup
3+
variables:
4+
configStoreName:
5+
type: string
6+
prefix: configstor
7+
privateEndpointConnectionName:
8+
type: string
9+
prefix: privateend
10+
keyValueName:
11+
type: string
12+
prefix: keyvaluena
13+
groupName: configurationStores
14+
15+
prepareSteps:
16+
- step: createVirtualNetwork
17+
operationId: VirtualNetworks_CreateOrUpdate
18+
readmeTag: ../../../../../../network/resource-manager/readme.md
19+
parameters:
20+
virtualNetworkName: $(configStoreName)-vnet
21+
parameters:
22+
location: $(location)
23+
properties:
24+
addressSpace:
25+
addressPrefixes:
26+
- 10.0.0.0/16
27+
subnets:
28+
- name: subnet-1
29+
properties:
30+
addressPrefix: 10.0.0.0/24
31+
outputVariables:
32+
subnetId:
33+
type: string
34+
fromResponse: /properties/subnets/0/id
35+
36+
- step: createPublicIPAddress
37+
operationId: PublicIPAddresses_CreateOrUpdate
38+
readmeTag: ../../../../../../network/resource-manager/readme.md
39+
parameters:
40+
publicIpAddressName: $(configStoreName)-ip
41+
parameters:
42+
location: $(location)
43+
44+
scenarios:
45+
- steps:
46+
- step: Operations_List
47+
operationId: Operations_List
48+
- step: Operations_CheckNameAvailability
49+
exampleFile: ../examples/CheckNameAvailable.json
50+
- step: Operations_RegionalCheckNameAvailability
51+
exampleFile: ../examples/RegionalCheckNameAvailable.json
52+
- step: ConfigurationStores_Create
53+
exampleFile: ../examples/ConfigurationStoresCreate.json
54+
outputVariables:
55+
configurationStoreId:
56+
type: string
57+
fromResponse: /id
58+
- step: ConfigurationStores_List
59+
exampleFile: ../examples/ConfigurationStoresList.json
60+
- step: ConfigurationStores_ListByResourceGroup
61+
exampleFile: ../examples/ConfigurationStoresListByResourceGroup.json
62+
- step: ConfigurationStores_ListDeleted
63+
exampleFile: ../examples/DeletedConfigurationStoresList.json
64+
- step: ConfigurationStores_Get
65+
exampleFile: ../examples/ConfigurationStoresGet.json
66+
- step: ConfigurationStores_Update
67+
exampleFile: ../examples/ConfigurationStoresUpdate.json
68+
- step: ConfigurationStores_ListKeys
69+
exampleFile: ../examples/ConfigurationStoresListKeys.json
70+
outputVariables:
71+
keyId:
72+
fromResponse: /value/0/id
73+
- step: ConfigurationStores_RegenerateKey
74+
exampleFile: ../examples/ConfigurationStoresRegenerateKey.json
75+
requestUpdate:
76+
- replace: /regenerateKeyParameters/id
77+
value: $(keyId)
78+
- step: KeyValues_CreateOrUpdate
79+
exampleFile: ../examples/ConfigurationStoresCreateKeyValue.json
80+
- step: KeyValues_Get
81+
exampleFile: ../examples/ConfigurationStoresGetKeyValue.json
82+
- step: createPrivateEndpoints
83+
operationId: PrivateEndpoints_CreateOrUpdate
84+
readmeTag: ../../../../../../network/resource-manager/readme.md
85+
parameters:
86+
privateEndpointName: $(privateEndpointConnectionName)-endpoint
87+
parameters:
88+
location: $(location)
89+
properties:
90+
subnet:
91+
id: $(subnetId)
92+
privateLinkServiceConnections:
93+
- name: $(privateEndpointConnectionName)
94+
properties:
95+
privateLinkServiceId: $(configurationStoreId)
96+
groupIds:
97+
- $(groupName)
98+
- step: PrivateEndpointConnections_Update
99+
exampleFile: ../examples/ConfigurationStoresCreatePrivateEndpointConnection.json
100+
- step: PrivateEndpointConnections_ListByConfigurationStore
101+
exampleFile: ../examples/ConfigurationStoresListPrivateEndpointConnections.json
102+
- step: PrivateEndpointConnections_Get
103+
exampleFile: ../examples/ConfigurationStoresGetPrivateEndpointConnection.json
104+
- step: PrivateLinkResources_ListByConfigurationStore
105+
exampleFile: ../examples/PrivateLinkResourcesListByConfigurationStore.json
106+
- step: PrivateLinkResources_Get
107+
exampleFile: ../examples/PrivateLinkResourceGet.json
108+
- step: PrivateEndpointConnections_Delete
109+
exampleFile: ../examples/ConfigurationStoresDeletePrivateEndpointConnection.json
110+
- step: KeyValues_Delete
111+
exampleFile: ../examples/ConfigurationStoresDeleteKeyValue.json
112+
- step: ConfigurationStores_Delete
113+
exampleFile: ../examples/ConfigurationStoresDelete.json
114+
- step: ConfigurationStores_GetDeleted
115+
exampleFile: ../examples/DeletedConfigurationStoresGet.json
116+
- step: ConfigurationStores_PurgeDeleted
117+
exampleFile: ../examples/DeletedConfigurationStoresPurge.json
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Tag: package-2022-05-01
2+
3+
These settings apply only when `--tag=package-2022-05-01` is specified on the command line.
4+
5+
``` yaml $(tag) == 'package-2022-05-01'
6+
test-resources:
7+
- Microsoft.AppConfiguration/stable/2022-05-01/scenarios/basic.yaml
8+
9+
```

0 commit comments

Comments
 (0)