forked from Azure/bicep-registry-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zedy
committed
Jul 19, 2024
1 parent
d0d0766
commit f7cc4e5
Showing
6 changed files
with
254 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
avm/res/container-service/managed-cluster/maintenance-configurations/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations `[Microsoft.ContainerService/managedClusters/maintenanceConfigurations]` | ||
|
||
This module deploys an Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations. | ||
|
||
## Navigation | ||
|
||
- [Resource Types](#Resource-Types) | ||
- [Parameters](#Parameters) | ||
- [Outputs](#Outputs) | ||
- [Cross-referenced modules](#Cross-referenced-modules) | ||
- [Data Collection](#Data-Collection) | ||
|
||
## Resource Types | ||
|
||
| Resource Type | API Version | | ||
| :-- | :-- | | ||
| `Microsoft.ContainerService/managedClusters/maintenanceConfigurations` | [2023-10-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.ContainerService/2023-10-01/managedClusters/maintenanceConfigurations) | | ||
|
||
## Parameters | ||
|
||
**Required parameters** | ||
|
||
| Parameter | Type | Description | | ||
| :-- | :-- | :-- | | ||
| [`maintenanceWindow`](#parameter-maintenancewindow) | object | Maintenance window for the maintenance configuration. | | ||
| [`name`](#parameter-name) | string | Name of the maintenance configuration. | | ||
|
||
**Conditional parameters** | ||
|
||
| Parameter | Type | Description | | ||
| :-- | :-- | :-- | | ||
| [`managedClusterName`](#parameter-managedclustername) | string | The name of the parent managed cluster. Required if the template is used in a standalone deployment. | | ||
|
||
### Parameter: `maintenanceWindow` | ||
|
||
Maintenance window for the maintenance configuration. | ||
|
||
- Required: Yes | ||
- Type: object | ||
|
||
### Parameter: `name` | ||
|
||
Name of the maintenance configuration. | ||
|
||
- Required: Yes | ||
- Type: string | ||
|
||
### Parameter: `managedClusterName` | ||
|
||
The name of the parent managed cluster. Required if the template is used in a standalone deployment. | ||
|
||
- Required: Yes | ||
- Type: string | ||
|
||
|
||
## Outputs | ||
|
||
| Output | Type | | ||
| :-- | :-- | | ||
|
||
## Cross-referenced modules | ||
|
||
_None_ | ||
|
||
## Data Collection | ||
|
||
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the [repository](https://aka.ms/avm/telemetry). There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at <https://go.microsoft.com/fwlink/?LinkID=824704>. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices. |
24 changes: 24 additions & 0 deletions
24
avm/res/container-service/managed-cluster/maintenance-configurations/main.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
metadata name = 'Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations' | ||
metadata description = 'This module deploys an Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations.' | ||
metadata owner = 'Azure/module-maintainers' | ||
|
||
@description('Required. Maintenance window for the maintenance configuration.') | ||
param maintenanceWindow object | ||
|
||
@description('Conditional. The name of the parent managed cluster. Required if the template is used in a standalone deployment.') | ||
param managedClusterName string | ||
|
||
@description('Required. Name of the maintenance configuration.') | ||
param name string | ||
|
||
resource managedCluster 'Microsoft.ContainerService/managedClusters@2024-03-02-preview' existing = { | ||
name: managedClusterName | ||
} | ||
|
||
resource aksManagedAutoUpgradeSchedule 'Microsoft.ContainerService/managedClusters/maintenanceConfigurations@2023-10-01' = { | ||
name: name | ||
parent: managedCluster | ||
properties: { | ||
maintenanceWindow: maintenanceWindow | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
avm/res/container-service/managed-cluster/maintenance-configurations/main.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.27.1.19265", | ||
"templateHash": "18344615743873477382" | ||
}, | ||
"name": "Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations", | ||
"description": "This module deploys an Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations.", | ||
"owner": "Azure/module-maintainers" | ||
}, | ||
"parameters": { | ||
"maintenanceWindow": { | ||
"type": "object", | ||
"metadata": { | ||
"description": "Required. Maintenance window for the maintenance configuration." | ||
} | ||
}, | ||
"managedClusterName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Conditional. The name of the parent managed cluster. Required if the template is used in a standalone deployment." | ||
} | ||
}, | ||
"name": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Required. Name of the maintenance configuration." | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.ContainerService/managedClusters/maintenanceConfigurations", | ||
"apiVersion": "2023-10-01", | ||
"name": "[format('{0}/{1}', parameters('managedClusterName'), parameters('name'))]", | ||
"properties": { | ||
"maintenanceWindow": "[parameters('maintenanceWindow')]" | ||
} | ||
} | ||
] | ||
} |