Skip to content

Commit

Permalink
fix: Removes typo secrect (#4441)
Browse files Browse the repository at this point in the history
## Description

Updates module to fix typo 

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|          |

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [x] Azure Verified Module updates:
- [x] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [x] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

Co-authored-by: Guillaume Beaud <[email protected]>
  • Loading branch information
C0smin and gbeaud authored Feb 17, 2025
1 parent c95eaa3 commit 2018351
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions avm/res/cdn/profile/customdomain/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ param secretName string = ''
resource profile 'Microsoft.Cdn/profiles@2023-05-01' existing = {
name: profileName

resource secrect 'secrets@2023-05-01' existing = if (!empty(secretName)) {
resource secret 'secrets@2023-05-01' existing = if (!empty(secretName)) {
name: secretName
}
}
Expand All @@ -66,7 +66,7 @@ resource customDomain 'Microsoft.Cdn/profiles/customDomains@2023-05-01' = {
minimumTlsVersion: minimumTlsVersion
secret: !(empty(secretName))
? {
id: profile::secrect.id
id: profile::secret.id
}
: null
}
Expand Down
4 changes: 2 additions & 2 deletions avm/res/cdn/profile/customdomain/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
}
},
"resources": {
"profile::secrect": {
"profile::secret": {
"condition": "[not(empty(parameters('secretName')))]",
"existing": true,
"type": "Microsoft.Cdn/profiles/secrets",
Expand Down Expand Up @@ -244,4 +244,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion avm/res/cdn/profile/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ module profile_ruleSets 'ruleset/main.bicep' = [
params: {
name: ruleSet.name
profileName: profile.name
rules: ruleSet.rules
rules: ruleSet.?rules
}
}
]
Expand Down
28 changes: 14 additions & 14 deletions avm/res/cdn/profile/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.33.13.18514",
"templateHash": "2568064534163012915"
"templateHash": "17701317715444968473"
},
"name": "CDN Profiles",
"description": "This module deploys a CDN Profile."
Expand Down Expand Up @@ -1693,7 +1693,7 @@
"_generator": {
"name": "bicep",
"version": "0.33.13.18514",
"templateHash": "6185880578813937844"
"templateHash": "14557033028846709449"
},
"name": "CDN Profiles Secret",
"description": "This module deploys a CDN Profile Secret."
Expand All @@ -1702,7 +1702,7 @@
"name": {
"type": "string",
"metadata": {
"description": "Required. The name of the secrect."
"description": "Required. The name of the secret."
}
},
"profileName": {
Expand All @@ -1721,7 +1721,7 @@
"UrlSigningKey"
],
"metadata": {
"description": "Optional. The type of the secrect."
"description": "Optional. The type of the secret."
}
},
"secretSourceResourceId": {
Expand All @@ -1742,14 +1742,14 @@
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Optional. The subject alternative names of the secrect."
"description": "Optional. The subject alternative names of the secret."
}
},
"useLatestVersion": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Optional. Indicates whether to use the latest version of the secrect."
"description": "Optional. Indicates whether to use the latest version of the secret."
}
}
},
Expand All @@ -1767,14 +1767,14 @@
"name": {
"type": "string",
"metadata": {
"description": "The name of the secrect."
"description": "The name of the secret."
},
"value": "[parameters('name')]"
},
"resourceId": {
"type": "string",
"metadata": {
"description": "The resource ID of the secrect."
"description": "The resource ID of the secret."
},
"value": "[resourceId('Microsoft.Cdn/profiles/secrets', parameters('profileName'), parameters('name'))]"
},
Expand Down Expand Up @@ -1842,7 +1842,7 @@
"_generator": {
"name": "bicep",
"version": "0.33.13.18514",
"templateHash": "13058047826352389276"
"templateHash": "10369216656034565871"
},
"name": "CDN Profiles Custom Domains",
"description": "This module deploys a CDN Profile Custom Domains."
Expand Down Expand Up @@ -2016,7 +2016,7 @@
}
},
"resources": {
"profile::secrect": {
"profile::secret": {
"condition": "[not(empty(parameters('secretName')))]",
"existing": true,
"type": "Microsoft.Cdn/profiles/secrets",
Expand Down Expand Up @@ -2764,7 +2764,7 @@
"value": "[parameters('name')]"
},
"rules": {
"value": "[parameters('ruleSets')[copyIndex()].rules]"
"value": "[tryGet(parameters('ruleSets')[copyIndex()], 'rules')]"
}
},
"template": {
Expand Down Expand Up @@ -4014,7 +4014,7 @@
"_generator": {
"name": "bicep",
"version": "0.33.13.18514",
"templateHash": "9521724516599685420"
"templateHash": "6987560302604046970"
},
"name": "CDN Profiles Security Policy",
"description": "This module deploys a CDN Profile Security Policy."
Expand Down Expand Up @@ -4110,14 +4110,14 @@
"name": {
"type": "string",
"metadata": {
"description": "The name of the secrect."
"description": "The name of the secret."
},
"value": "[parameters('name')]"
},
"resourceId": {
"type": "string",
"metadata": {
"description": "The resource ID of the secrect."
"description": "The resource ID of the secret."
},
"value": "[resourceId('Microsoft.Cdn/profiles/securityPolicies', parameters('profileName'), parameters('name'))]"
},
Expand Down
20 changes: 10 additions & 10 deletions avm/res/cdn/profile/secret/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This module deploys a CDN Profile Secret.

| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`name`](#parameter-name) | string | The name of the secrect. |
| [`name`](#parameter-name) | string | The name of the secret. |

**Conditional parameters**

Expand All @@ -34,13 +34,13 @@ This module deploys a CDN Profile Secret.
| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`secretVersion`](#parameter-secretversion) | string | The version of the secret. |
| [`subjectAlternativeNames`](#parameter-subjectalternativenames) | array | The subject alternative names of the secrect. |
| [`type`](#parameter-type) | string | The type of the secrect. |
| [`useLatestVersion`](#parameter-uselatestversion) | bool | Indicates whether to use the latest version of the secrect. |
| [`subjectAlternativeNames`](#parameter-subjectalternativenames) | array | The subject alternative names of the secret. |
| [`type`](#parameter-type) | string | The type of the secret. |
| [`useLatestVersion`](#parameter-uselatestversion) | bool | Indicates whether to use the latest version of the secret. |

### Parameter: `name`

The name of the secrect.
The name of the secret.

- Required: Yes
- Type: string
Expand Down Expand Up @@ -70,15 +70,15 @@ The version of the secret.

### Parameter: `subjectAlternativeNames`

The subject alternative names of the secrect.
The subject alternative names of the secret.

- Required: No
- Type: array
- Default: `[]`

### Parameter: `type`

The type of the secrect.
The type of the secret.

- Required: No
- Type: string
Expand All @@ -95,7 +95,7 @@ The type of the secrect.

### Parameter: `useLatestVersion`

Indicates whether to use the latest version of the secrect.
Indicates whether to use the latest version of the secret.

- Required: No
- Type: bool
Expand All @@ -105,6 +105,6 @@ Indicates whether to use the latest version of the secrect.

| Output | Type | Description |
| :-- | :-- | :-- |
| `name` | string | The name of the secrect. |
| `name` | string | The name of the secret. |
| `resourceGroupName` | string | The name of the resource group the secret was created in. |
| `resourceId` | string | The resource ID of the secrect. |
| `resourceId` | string | The resource ID of the secret. |
12 changes: 6 additions & 6 deletions avm/res/cdn/profile/secret/main.bicep
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
metadata name = 'CDN Profiles Secret'
metadata description = 'This module deploys a CDN Profile Secret.'

@description('Required. The name of the secrect.')
@description('Required. The name of the secret.')
param name string

@description('Conditional. The name of the parent CDN profile. Required if the template is used in a standalone deployment.')
Expand All @@ -13,7 +13,7 @@ param profileName string
'ManagedCertificate'
'UrlSigningKey'
])
@description('Optional. The type of the secrect.')
@description('Optional. The type of the secret.')
param type string = 'AzureFirstPartyManagedCertificate'

@description('Conditional. The resource ID of the secret source. Required if the `type` is "CustomerCertificate".')
Expand All @@ -23,10 +23,10 @@ param secretSourceResourceId string = ''
@description('Optional. The version of the secret.')
param secretVersion string = ''

@description('Optional. The subject alternative names of the secrect.')
@description('Optional. The subject alternative names of the secret.')
param subjectAlternativeNames array = []

@description('Optional. Indicates whether to use the latest version of the secrect.')
@description('Optional. Indicates whether to use the latest version of the secret.')
param useLatestVersion bool = false

resource profile 'Microsoft.Cdn/profiles@2023-05-01' existing = {
Expand All @@ -53,10 +53,10 @@ resource secret 'Microsoft.Cdn/profiles/secrets@2023-05-01' = {
}
}

@description('The name of the secrect.')
@description('The name of the secret.')
output name string = secret.name

@description('The resource ID of the secrect.')
@description('The resource ID of the secret.')
output resourceId string = secret.id

@description('The name of the resource group the secret was created in.')
Expand Down
14 changes: 7 additions & 7 deletions avm/res/cdn/profile/secret/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": {
"type": "string",
"metadata": {
"description": "Required. The name of the secrect."
"description": "Required. The name of the secret."
}
},
"profileName": {
Expand All @@ -33,7 +33,7 @@
"UrlSigningKey"
],
"metadata": {
"description": "Optional. The type of the secrect."
"description": "Optional. The type of the secret."
}
},
"secretSourceResourceId": {
Expand All @@ -54,14 +54,14 @@
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Optional. The subject alternative names of the secrect."
"description": "Optional. The subject alternative names of the secret."
}
},
"useLatestVersion": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Optional. Indicates whether to use the latest version of the secrect."
"description": "Optional. Indicates whether to use the latest version of the secret."
}
}
},
Expand All @@ -79,14 +79,14 @@
"name": {
"type": "string",
"metadata": {
"description": "The name of the secrect."
"description": "The name of the secret."
},
"value": "[parameters('name')]"
},
"resourceId": {
"type": "string",
"metadata": {
"description": "The resource ID of the secrect."
"description": "The resource ID of the secret."
},
"value": "[resourceId('Microsoft.Cdn/profiles/secrets', parameters('profileName'), parameters('name'))]"
},
Expand All @@ -98,4 +98,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
4 changes: 2 additions & 2 deletions avm/res/cdn/profile/securityPolicies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ The name of the parent CDN profile. Required if the template is used in a standa

| Output | Type | Description |
| :-- | :-- | :-- |
| `name` | string | The name of the secrect. |
| `name` | string | The name of the secret. |
| `resourceGroupName` | string | The name of the resource group the secret was created in. |
| `resourceId` | string | The resource ID of the secrect. |
| `resourceId` | string | The resource ID of the secret. |
4 changes: 2 additions & 2 deletions avm/res/cdn/profile/securityPolicies/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ type associationsType = {
patternsToMatch: string[]
}[]

@description('The name of the secrect.')
@description('The name of the secret.')
output name string = securityPolicies.name

@description('The resource ID of the secrect.')
@description('The resource ID of the secret.')
output resourceId string = securityPolicies.id

@description('The name of the resource group the secret was created in.')
Expand Down
6 changes: 3 additions & 3 deletions avm/res/cdn/profile/securityPolicies/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@
"name": {
"type": "string",
"metadata": {
"description": "The name of the secrect."
"description": "The name of the secret."
},
"value": "[parameters('name')]"
},
"resourceId": {
"type": "string",
"metadata": {
"description": "The resource ID of the secrect."
"description": "The resource ID of the secret."
},
"value": "[resourceId('Microsoft.Cdn/profiles/securityPolicies', parameters('profileName'), parameters('name'))]"
},
Expand All @@ -121,4 +121,4 @@
"value": "[resourceGroup().name]"
}
}
}
}

0 comments on commit 2018351

Please sign in to comment.