Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneHezser committed Feb 19, 2025
1 parent a597014 commit 928b893
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 125 deletions.
56 changes: 27 additions & 29 deletions avm/res/api-management/service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This module deploys an API Management Service. The default deployment is set to

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service` | [2023-05-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2023-05-01-preview/service) |
| `Microsoft.ApiManagement/service` | [2024-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2024-05-01/service) |
| `Microsoft.ApiManagement/service/apis` | [2022-08-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2022-08-01/service/apis) |
| `Microsoft.ApiManagement/service/apis/diagnostics` | [2022-08-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2022-08-01/service/apis/diagnostics) |
| `Microsoft.ApiManagement/service/apis/policies` | [2022-08-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2022-08-01/service/apis/policies) |
Expand Down Expand Up @@ -223,6 +223,7 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
publisherEmail: '[email protected]'
publisherName: 'az-amorg-x-001'
// Non-required parameters
enableDeveloperPortal: true
location: '<location>'
sku: 'Developer'
}
Expand Down Expand Up @@ -252,6 +253,9 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
"value": "az-amorg-x-001"
},
// Non-required parameters
"enableDeveloperPortal": {
"value": true
},
"location": {
"value": "<location>"
},
Expand All @@ -277,6 +281,7 @@ param name = 'apisdev001'
param publisherEmail = '[email protected]'
param publisherName = 'az-amorg-x-001'
// Non-required parameters
param enableDeveloperPortal = true
param location = '<location>'
param sku = 'Developer'
```
Expand Down Expand Up @@ -337,10 +342,6 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
displayName: 'Echo API'
name: 'echo-api'
path: 'echo'
protocols: [
'http'
'https'
]
serviceUrl: 'http://echoapi.cloudapp.net/api'
}
]
Expand Down Expand Up @@ -577,10 +578,6 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
"displayName": "Echo API",
"name": "echo-api",
"path": "echo",
"protocols": [
"http",
"https"
],
"serviceUrl": "http://echoapi.cloudapp.net/api"
}
]
Expand Down Expand Up @@ -843,10 +840,6 @@ param apis = [
displayName: 'Echo API'
name: 'echo-api'
path: 'echo'
protocols: [
'http'
'https'
]
serviceUrl: 'http://echoapi.cloudapp.net/api'
}
]
Expand Down Expand Up @@ -1039,6 +1032,7 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
publisherEmail: '[email protected]'
publisherName: 'az-amorg-x-001'
// Non-required parameters
enableDeveloperPortal: true
location: '<location>'
sku: 'BasicV2'
}
Expand Down Expand Up @@ -1068,6 +1062,9 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
"value": "az-amorg-x-001"
},
// Non-required parameters
"enableDeveloperPortal": {
"value": true
},
"location": {
"value": "<location>"
},
Expand All @@ -1093,6 +1090,7 @@ param name = 'apisv2s001'
param publisherEmail = '[email protected]'
param publisherName = 'az-amorg-x-001'
// Non-required parameters
param enableDeveloperPortal = true
param location = '<location>'
param sku = 'BasicV2'
```
Expand Down Expand Up @@ -1142,9 +1140,6 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
displayName: 'Echo API'
name: 'echo-api'
path: 'echo'
protocols: [
'https'
]
serviceUrl: 'https://echoapi.cloudapp.net/api'
}
]
Expand All @@ -1168,8 +1163,8 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
{
name: 'backend'
tls: {
validateCertificateChain: true
validateCertificateName: true
validateCertificateChain: false
validateCertificateName: false
}
url: 'https://echoapi.cloudapp.net/api'
}
Expand Down Expand Up @@ -1356,9 +1351,6 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
"displayName": "Echo API",
"name": "echo-api",
"path": "echo",
"protocols": [
"https"
],
"serviceUrl": "https://echoapi.cloudapp.net/api"
}
]
Expand Down Expand Up @@ -1386,8 +1378,8 @@ module service 'br/public:avm/res/api-management/service:<version>' = {
{
"name": "backend",
"tls": {
"validateCertificateChain": true,
"validateCertificateName": true
"validateCertificateChain": false,
"validateCertificateName": false
},
"url": "https://echoapi.cloudapp.net/api"
}
Expand Down Expand Up @@ -1592,9 +1584,6 @@ param apis = [
displayName: 'Echo API'
name: 'echo-api'
path: 'echo'
protocols: [
'https'
]
serviceUrl: 'https://echoapi.cloudapp.net/api'
}
]
Expand All @@ -1618,8 +1607,8 @@ param backends = [
{
name: 'backend'
tls: {
validateCertificateChain: true
validateCertificateName: true
validateCertificateChain: false
validateCertificateName: false
}
url: 'https://echoapi.cloudapp.net/api'
}
Expand Down Expand Up @@ -1789,6 +1778,7 @@ param tags = {
| [`diagnosticSettings`](#parameter-diagnosticsettings) | array | The diagnostic settings of the service. |
| [`disableGateway`](#parameter-disablegateway) | bool | Property only valid for an API Management service deployed in multiple locations. This can be used to disable the gateway in master region. |
| [`enableClientCertificate`](#parameter-enableclientcertificate) | bool | Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. |
| [`enableDeveloperPortal`](#parameter-enabledeveloperportal) | bool | Enable the Developer Portal. The developer portal is not supported on the Consumption SKU. |
| [`enableTelemetry`](#parameter-enabletelemetry) | bool | Enable/Disable usage telemetry for module. |
| [`hostnameConfigurations`](#parameter-hostnameconfigurations) | array | Custom hostname configuration of the API Management service. |
| [`identityProviders`](#parameter-identityproviders) | array | Identity providers. |
Expand Down Expand Up @@ -2088,6 +2078,14 @@ Property only meant to be used for Consumption SKU Service. This enforces a clie
- Type: bool
- Default: `False`

### Parameter: `enableDeveloperPortal`

Enable the Developer Portal. The developer portal is not supported on the Consumption SKU.

- Required: No
- Type: bool
- Default: `False`

### Parameter: `enableTelemetry`

Enable/Disable usage telemetry for module.
Expand Down Expand Up @@ -2457,7 +2455,7 @@ This section gives you an overview of all local-referenced module files (i.e., o

| Reference | Type |
| :-- | :-- |
| `br/public:avm/utl/types/avm-common-types:0.4.0` | Remote reference |
| `br/public:avm/utl/types/avm-common-types:0.4.1` | Remote reference |

## Notes

Expand Down
9 changes: 4 additions & 5 deletions avm/res/api-management/service/api-version-set/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "2984286284615323058"
"version": "0.33.13.18514",
"templateHash": "6801592949576181154"
},
"name": "API Management Service API Version Sets",
"description": "This module deploys an API Management Service API Version Set.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API Version Set."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -64,4 +63,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
9 changes: 4 additions & 5 deletions avm/res/api-management/service/api/diagnostics/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "12634911878831297857"
"version": "0.33.13.18514",
"templateHash": "4899675580903703157"
},
"name": "API Management Service APIs Diagnostics.",
"description": "This module deploys an API Management Service API Diagnostics.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API Diagnostics."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -165,4 +164,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
23 changes: 10 additions & 13 deletions avm/res/api-management/service/api/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "18387862600358779253"
"version": "0.33.13.18514",
"templateHash": "11063536724422240669"
},
"name": "API Management Service APIs",
"description": "This module deploys an API Management Service API.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API."
},
"parameters": {
"name": {
Expand Down Expand Up @@ -280,12 +279,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "907926791460586140"
"version": "0.33.13.18514",
"templateHash": "8003925948340237461"
},
"name": "API Management Service APIs Policies",
"description": "This module deploys an API Management Service API Policy.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API Policy."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -427,12 +425,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "12634911878831297857"
"version": "0.33.13.18514",
"templateHash": "4899675580903703157"
},
"name": "API Management Service APIs Diagnostics.",
"description": "This module deploys an API Management Service API Diagnostics.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API Diagnostics."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -618,4 +615,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
9 changes: 4 additions & 5 deletions avm/res/api-management/service/api/policy/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "907926791460586140"
"version": "0.33.13.18514",
"templateHash": "8003925948340237461"
},
"name": "API Management Service APIs Policies",
"description": "This module deploys an API Management Service API Policy.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service API Policy."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -85,4 +84,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
9 changes: 4 additions & 5 deletions avm/res/api-management/service/authorization-server/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "524425489707629463"
"version": "0.33.93.31351",
"templateHash": "6804762094873651550"
},
"name": "API Management Service Authorization Servers",
"description": "This module deploys an API Management Service Authorization Server.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service Authorization Server."
},
"parameters": {
"name": {
Expand Down Expand Up @@ -193,4 +192,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
9 changes: 4 additions & 5 deletions avm/res/api-management/service/backend/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "2165388618911761186"
"version": "0.33.93.31351",
"templateHash": "4453336321720967633"
},
"name": "API Management Service Backends",
"description": "This module deploys an API Management Service Backend.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service Backend."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -140,4 +139,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
9 changes: 4 additions & 5 deletions avm/res/api-management/service/cache/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "11874790944759917192"
"version": "0.33.93.31351",
"templateHash": "18419808380672694533"
},
"name": "API Management Service Caches",
"description": "This module deploys an API Management Service Cache.",
"owner": "Azure/module-maintainers"
"description": "This module deploys an API Management Service Cache."
},
"parameters": {
"apiManagementServiceName": {
Expand Down Expand Up @@ -94,4 +93,4 @@
"value": "[resourceGroup().name]"
}
}
}
}
Loading

0 comments on commit 928b893

Please sign in to comment.