Skip to content

Commit 2e4012b

Browse files
authored
Azure.Provisioning - switch to two space indent for idiomacy. (Azure#46016)
1 parent 1db5670 commit 2e4012b

File tree

23 files changed

+701
-701
lines changed

23 files changed

+701
-701
lines changed

sdk/provisioning/Azure.Provisioning.AppConfiguration/tests/BasicAppConfigurationTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@ await test.Define(
6363
param location string = resourceGroup().location
6464
6565
resource configStore 'Microsoft.AppConfiguration/configurationStores@2022-05-01' = {
66-
name: take('configStore-${uniqueString(resourceGroup().id)}', 50)
67-
location: location
68-
sku: {
69-
name: 'Standard'
70-
}
66+
name: take('configStore-${uniqueString(resourceGroup().id)}', 50)
67+
location: location
68+
sku: {
69+
name: 'Standard'
70+
}
7171
}
7272
7373
var flag = {
74-
id: featureFlagKey
75-
description: 'A simple feature flag.'
76-
enabled: true
74+
id: featureFlagKey
75+
description: 'A simple feature flag.'
76+
enabled: true
7777
}
7878
7979
resource featureFlag 'Microsoft.AppConfiguration/configurationStores/keyValues@2022-05-01' = {
80-
name: '.appconfig.featureflag~2F${featureFlagKey}'
81-
properties: {
82-
contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
83-
value: string(flag)
84-
}
85-
parent: configStore
80+
name: '.appconfig.featureflag~2F${featureFlagKey}'
81+
properties: {
82+
contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
83+
value: string(flag)
84+
}
85+
parent: configStore
8686
}
8787
""")
8888
.Lint()

sdk/provisioning/Azure.Provisioning.AppContainers/tests/BasicAppContainersTests.cs

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -103,65 +103,65 @@ await test.Define(
103103
param location string = resourceGroup().location
104104
105105
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
106-
name: take('logAnalytics-${uniqueString(resourceGroup().id)}', 63)
107-
location: location
108-
properties: {
109-
sku: {
110-
name: 'PerGB2018'
111-
}
106+
name: take('logAnalytics-${uniqueString(resourceGroup().id)}', 63)
107+
location: location
108+
properties: {
109+
sku: {
110+
name: 'PerGB2018'
112111
}
112+
}
113113
}
114114
115115
resource env 'Microsoft.App/managedEnvironments@2023-05-01' = {
116-
name: take('env${uniqueString(resourceGroup().id)}', 24)
117-
location: location
118-
properties: {
119-
appLogsConfiguration: {
120-
destination: 'log-analytics'
121-
logAnalyticsConfiguration: {
122-
customerId: logAnalytics.properties.customerId
123-
sharedKey: logAnalytics.listKeys().primarySharedKey
124-
}
125-
}
116+
name: take('env${uniqueString(resourceGroup().id)}', 24)
117+
location: location
118+
properties: {
119+
appLogsConfiguration: {
120+
destination: 'log-analytics'
121+
logAnalyticsConfiguration: {
122+
customerId: logAnalytics.properties.customerId
123+
sharedKey: logAnalytics.listKeys().primarySharedKey
124+
}
126125
}
126+
}
127127
}
128128
129129
resource app 'Microsoft.App/containerApps@2023-05-01' = {
130-
name: take('app-${uniqueString(resourceGroup().id)}', 32)
131-
location: location
132-
properties: {
133-
configuration: {
134-
ingress: {
135-
external: true
136-
targetPort: 80
137-
traffic: [
138-
{
139-
weight: 100
140-
latestRevision: true
141-
}
142-
]
143-
allowInsecure: false
144-
}
145-
}
146-
managedEnvironmentId: env.id
147-
template: {
148-
revisionSuffix: 'firstrevision'
149-
containers: [
150-
{
151-
image: containerImage
152-
name: 'test'
153-
resources: {
154-
cpu: json('0.5')
155-
memory: '1Gi'
156-
}
157-
}
158-
]
159-
scale: {
160-
minReplicas: 1
161-
maxReplicas: 3
162-
}
130+
name: take('app-${uniqueString(resourceGroup().id)}', 32)
131+
location: location
132+
properties: {
133+
configuration: {
134+
ingress: {
135+
external: true
136+
targetPort: 80
137+
traffic: [
138+
{
139+
weight: 100
140+
latestRevision: true
141+
}
142+
]
143+
allowInsecure: false
144+
}
145+
}
146+
managedEnvironmentId: env.id
147+
template: {
148+
revisionSuffix: 'firstrevision'
149+
containers: [
150+
{
151+
image: containerImage
152+
name: 'test'
153+
resources: {
154+
cpu: json('0.5')
155+
memory: '1Gi'
156+
}
163157
}
158+
]
159+
scale: {
160+
minReplicas: 1
161+
maxReplicas: 3
162+
}
164163
}
164+
}
165165
}
166166
""")
167167
.Lint()

sdk/provisioning/Azure.Provisioning.AppService/tests/BasicAppServiceTests.cs

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -117,84 +117,84 @@ await test.Define(
117117
param location string = resourceGroup().location
118118
119119
resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
120-
name: take('storage${uniqueString(resourceGroup().id)}', 24)
121-
kind: 'Storage'
122-
location: location
123-
sku: {
124-
name: 'Standard_LRS'
125-
}
126-
properties: {
127-
supportsHttpsTrafficOnly: true
128-
defaultToOAuthAuthentication: true
129-
}
120+
name: take('storage${uniqueString(resourceGroup().id)}', 24)
121+
kind: 'Storage'
122+
location: location
123+
sku: {
124+
name: 'Standard_LRS'
125+
}
126+
properties: {
127+
supportsHttpsTrafficOnly: true
128+
defaultToOAuthAuthentication: true
129+
}
130130
}
131131
132132
resource hostingPlan 'Microsoft.Web/serverfarms@2021-03-01' = {
133-
name: take('hostingPlan-${uniqueString(resourceGroup().id)}', 60)
134-
location: location
135-
sku: {
136-
name: 'Y1'
137-
tier: 'Dynamic'
138-
}
133+
name: take('hostingPlan-${uniqueString(resourceGroup().id)}', 60)
134+
location: location
135+
sku: {
136+
name: 'Y1'
137+
tier: 'Dynamic'
138+
}
139139
}
140140
141141
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
142-
name: take('appInsights-${uniqueString(resourceGroup().id)}', 260)
143-
kind: 'web'
144-
location: location
145-
properties: {
146-
Application_Type: 'web'
147-
Request_Source: 'rest'
148-
}
142+
name: take('appInsights-${uniqueString(resourceGroup().id)}', 260)
143+
kind: 'web'
144+
location: location
145+
properties: {
146+
Application_Type: 'web'
147+
Request_Source: 'rest'
148+
}
149149
}
150150
151151
var funcAppName = concat('functionApp-', uniqueString(resourceGroup().id))
152152
153153
resource functionApp 'Microsoft.Web/sites@2023-12-01' = {
154-
name: funcAppName
155-
location: location
156-
properties: {
157-
serverFarmId: hostingPlan.id
158-
httpsOnly: true
159-
siteConfig: {
160-
appSettings: [
161-
{
162-
name: 'AzureWebJobsStorage'
163-
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};EndpointSuffix=core.windows.net;AccountKey=${storage.listKeys().keys[0].value}'
164-
}
165-
{
166-
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
167-
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};EndpointSuffix=core.windows.net;AccountKey=${storage.listKeys().keys[0].value}'
168-
}
169-
{
170-
name: 'WEBSITE_CONTENTSHARE'
171-
value: toLower(funcAppName)
172-
}
173-
{
174-
name: 'FUNCTIONS_EXTENSION_VERSION'
175-
value: '~4'
176-
}
177-
{
178-
name: 'WEBSITE_NODE_DEFAULT_VERSION'
179-
value: '~14'
180-
}
181-
{
182-
name: 'FUNCTIONS_WORKER_RUNTIME'
183-
value: 'dotnet'
184-
}
185-
{
186-
name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
187-
value: appInsights.properties.InstrumentationKey
188-
}
189-
]
190-
minTlsVersion: '1.2'
191-
ftpsState: 'FtpsOnly'
154+
name: funcAppName
155+
location: location
156+
properties: {
157+
serverFarmId: hostingPlan.id
158+
httpsOnly: true
159+
siteConfig: {
160+
appSettings: [
161+
{
162+
name: 'AzureWebJobsStorage'
163+
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};EndpointSuffix=core.windows.net;AccountKey=${storage.listKeys().keys[0].value}'
192164
}
165+
{
166+
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
167+
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};EndpointSuffix=core.windows.net;AccountKey=${storage.listKeys().keys[0].value}'
168+
}
169+
{
170+
name: 'WEBSITE_CONTENTSHARE'
171+
value: toLower(funcAppName)
172+
}
173+
{
174+
name: 'FUNCTIONS_EXTENSION_VERSION'
175+
value: '~4'
176+
}
177+
{
178+
name: 'WEBSITE_NODE_DEFAULT_VERSION'
179+
value: '~14'
180+
}
181+
{
182+
name: 'FUNCTIONS_WORKER_RUNTIME'
183+
value: 'dotnet'
184+
}
185+
{
186+
name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
187+
value: appInsights.properties.InstrumentationKey
188+
}
189+
]
190+
minTlsVersion: '1.2'
191+
ftpsState: 'FtpsOnly'
193192
}
194-
identity: {
195-
type: 'SystemAssigned'
196-
}
197-
kind: 'functionapp'
193+
}
194+
identity: {
195+
type: 'SystemAssigned'
196+
}
197+
kind: 'functionapp'
198198
}
199199
""")
200200
.Lint()

sdk/provisioning/Azure.Provisioning.ApplicationInsights/tests/BasicApplicationInsightsTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ await test.Define(
3737
param location string = resourceGroup().location
3838
3939
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
40-
name: take('appInsights-${uniqueString(resourceGroup().id)}', 260)
41-
kind: 'web'
42-
location: location
43-
properties: {
44-
Application_Type: 'web'
45-
Request_Source: 'rest'
46-
}
40+
name: take('appInsights-${uniqueString(resourceGroup().id)}', 260)
41+
kind: 'web'
42+
location: location
43+
properties: {
44+
Application_Type: 'web'
45+
Request_Source: 'rest'
46+
}
4747
}
4848
4949
output appInsightsName string = appInsights.name

sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,22 @@ await test.Define(
4444
param location string = resourceGroup().location
4545
4646
resource account 'Microsoft.CognitiveServices/accounts@2022-12-01' = {
47-
name: take('account-${uniqueString(resourceGroup().id)}', 64)
48-
location: location
49-
identity: {
50-
type: 'SystemAssigned'
51-
}
52-
kind: 'TextTranslation'
53-
properties: {
54-
networkAcls: {
55-
defaultAction: 'Deny'
56-
}
57-
publicNetworkAccess: 'Disabled'
58-
disableLocalAuth: true
59-
}
60-
sku: {
61-
name: 'S1'
47+
name: take('account-${uniqueString(resourceGroup().id)}', 64)
48+
location: location
49+
identity: {
50+
type: 'SystemAssigned'
51+
}
52+
kind: 'TextTranslation'
53+
properties: {
54+
networkAcls: {
55+
defaultAction: 'Deny'
6256
}
57+
publicNetworkAccess: 'Disabled'
58+
disableLocalAuth: true
59+
}
60+
sku: {
61+
name: 'S1'
62+
}
6363
}
6464
""")
6565
.Lint()

sdk/provisioning/Azure.Provisioning.Communication/tests/BasicCommunicationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ await test.Define(
3838
param location string = 'global'
3939
4040
resource comm 'Microsoft.Communication/communicationServices@2023-03-31' = {
41-
name: take('comm-${uniqueString(resourceGroup().id)}', 63)
42-
location: location
43-
properties: {
44-
dataLocation: 'unitedstates'
45-
}
41+
name: take('comm-${uniqueString(resourceGroup().id)}', 63)
42+
location: location
43+
properties: {
44+
dataLocation: 'unitedstates'
45+
}
4646
}
4747
""")
4848
.Lint()

0 commit comments

Comments
 (0)