Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: res/web/connections static test fix #2559

Merged
merged 20 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions avm/res/web/connection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ module connection 'br/public:avm/res/web/connection:<version>' = {
| [`customParameterValues`](#parameter-customparametervalues) | object | Dictionary of custom parameter values for specific connections. |
| [`enableTelemetry`](#parameter-enabletelemetry) | bool | Enable/Disable usage telemetry for module. |
| [`location`](#parameter-location) | string | Location of the deployment. |
| [`lock`](#parameter-lock) | object | The lock settings of the service. |
| [`lock`](#parameter-lock) | object | The lock configuration of the service. |
| [`nonSecretParameterValues`](#parameter-nonsecretparametervalues) | object | Dictionary of nonsecret parameter values. |
| [`parameterValues`](#parameter-parametervalues) | secureObject | Connection strings or access keys for connection. Example: `accountName` and `accessKey` when using blobs. It can change depending on the resource. |
| [`parameterValueSet`](#parameter-parametervalueset) | object | Additional parameter Value Set used for authentication settings. |
Expand Down Expand Up @@ -333,6 +333,14 @@ Specific values for some API connections.

- Required: No
- Type: object
- Example:
```Bicep
// for a Service Bus connection
{
type: 'Microsoft.Web/locations/managedApis'
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', '${resourceLocation}', 'servicebus')
}
```

### Parameter: `customParameterValues`

Expand All @@ -359,7 +367,7 @@ Location of the deployment.

### Parameter: `lock`

The lock settings of the service.
The lock configuration of the service.

- Required: No
- Type: object
Expand Down Expand Up @@ -406,13 +414,43 @@ Connection strings or access keys for connection. Example: `accountName` and `ac

- Required: No
- Type: secureObject
- Example:
```Bicep
{
connectionString: 'listKeys('/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/Microsoft.ServiceBus/namespaces/AuthorizationRules/<serviceBusName>/RootManagedSharedAccessKey', '2023-01-01').primaryConnectionString'
}
{
rootfolder: fileshareConnection.rootfolder
authType: fileshareConnection.authType
// to add an object, use the any() function
gateway: any({
name: fileshareConnection.odgw.name
id: resourceId(fileshareConnection.odgw.resourceGroup, 'Microsoft.Web/connectionGateways', fileshareConnection.odgw.name)
type: 'Microsoft.Web/connectionGateways'
})
username: username
password: password
}
```

### Parameter: `parameterValueSet`

Additional parameter Value Set used for authentication settings.

- Required: No
- Type: object
- Example:
```Bicep
// for a Service Bus connection
{
name: 'managedIdentityAuth'
values: {
namespaceEndpoint: {
value: 'sb://${dependency.outputs.serviceBusEndpoint}'
}
}
}
```

### Parameter: `roleAssignments`

Expand Down Expand Up @@ -516,6 +554,13 @@ Tags of the resource.

- Required: No
- Type: object
- Example:
```Bicep
{
key1: 'value1'
key2: 'value2'
}
```

### Parameter: `testLinks`

Expand Down
2 changes: 1 addition & 1 deletion avm/res/web/connection/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ param roleAssignments roleAssignmentType
@description('Optional. The status of the connection.')
param statuses object[]?

@description('Optional. The lock settings of the service.')
@description('Optional. The lock configuration of the service.')
krbar marked this conversation as resolved.
Show resolved Hide resolved
param lock lockType

@metadata({
Expand Down
4 changes: 2 additions & 2 deletions avm/res/web/connection/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "4760344619510029018"
"templateHash": "11675303428304792917"
},
"name": "API Connections",
"description": "This module deploys an Azure API Connection.",
Expand Down Expand Up @@ -189,7 +189,7 @@
"lock": {
"$ref": "#/definitions/lockType",
"metadata": {
"description": "Optional. The lock settings of the service."
"description": "Optional. The lock configuration of the service."
}
},
"tags": {
Expand Down
Loading