Skip to content

Commit

Permalink
Updated descriptions and min value for processors
Browse files Browse the repository at this point in the history
  • Loading branch information
anderseide committed Feb 8, 2025
1 parent 8e759bb commit 179d70f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
27 changes: 19 additions & 8 deletions avm/res/hybrid-compute/license/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ param location = '<location>'
| :-- | :-- | :-- |
| [`enableTelemetry`](#parameter-enabletelemetry) | bool | Enable/Disable usage telemetry for module. |
| [`licenseDetailEdition`](#parameter-licensedetailedition) | string | Describes the edition of the license. The values are either Standard or Datacenter.. |
| [`licenseDetailProcessors`](#parameter-licensedetailprocessors) | int | Describes the number of processors. |
| [`licenseDetailState`](#parameter-licensedetailstate) | string | Describes the license state. |
| [`licenseDetailProcessors`](#parameter-licensedetailprocessors) | int | Provide the amount needed for this ESU licens. The minimum number of cores is 16 for physical and 8 for virtual core license. |
| [`licenseDetailState`](#parameter-licensedetailstate) | string | Activate or Deactivate the license billing cycle. Billing will not start until the license is activated. |
| [`licenseDetailTarget`](#parameter-licensedetailtarget) | string | Describes the license target server. |
| [`licenseDetailType`](#parameter-licensedetailtype) | string | Describes the license core type (pCore or vCore). |
| [`licenseDetailType`](#parameter-licensedetailtype) | string | Provide the core type (vCore or pCore) needed for this ESU licens. |
| [`licenseType`](#parameter-licensetype) | string | The type of the license resource. The value is ESU. |
| [`licenseVolumeLicenseDetails`](#parameter-licensevolumelicensedetails) | array | A list of volume license details. |
| [`location`](#parameter-location) | string | The location of the Azure Arc License to be created. |
Expand Down Expand Up @@ -211,26 +211,28 @@ Describes the edition of the license. The values are either Standard or Datacent

### Parameter: `licenseDetailProcessors`

Describes the number of processors.
Provide the amount needed for this ESU licens. The minimum number of cores is 16 for physical and 8 for virtual core license.

- Required: No
- Type: int
- Default: `2`
- Default: `8`
- MinValue: 8

### Parameter: `licenseDetailState`

Describes the license state.
Activate or Deactivate the license billing cycle. Billing will not start until the license is activated.

- Required: No
- Type: string
- Default: `'Active'`
- Default: `'Deactivated'`
- Allowed:
```Bicep
[
'Active'
'Deactivated'
]
```
- MinValue: 8

### Parameter: `licenseDetailTarget`

Expand All @@ -246,10 +248,11 @@ Describes the license target server.
'Windows Server 2012 R2'
]
```
- MinValue: 8

### Parameter: `licenseDetailType`

Describes the license core type (pCore or vCore).
Provide the core type (vCore or pCore) needed for this ESU licens.

- Required: No
- Type: string
Expand All @@ -261,6 +264,7 @@ Describes the license core type (pCore or vCore).
'vCore'
]
```
- MinValue: 8

### Parameter: `licenseType`

Expand All @@ -275,6 +279,7 @@ The type of the license resource. The value is ESU.
'ESU'
]
```
- MinValue: 8

### Parameter: `licenseVolumeLicenseDetails`

Expand All @@ -283,6 +288,7 @@ A list of volume license details.
- Required: No
- Type: array
- Default: `[]`
- MinValue: 8

**Required parameters**

Expand All @@ -297,6 +303,7 @@ The invoice id for the volume license.

- Required: Yes
- Type: string
- MinValue: 8

### Parameter: `licenseVolumeLicenseDetails.programYear`

Expand All @@ -312,6 +319,7 @@ Describes the program year the volume license is for.
'Year 3'
]
```
- MinValue: 8

### Parameter: `location`

Expand All @@ -320,13 +328,15 @@ The location of the Azure Arc License to be created.
- Required: No
- Type: string
- Default: `[resourceGroup().location]`
- MinValue: 8

### Parameter: `tags`

Tags of the resource.

- Required: No
- Type: object
- MinValue: 8

### Parameter: `tenantId`

Expand All @@ -335,6 +345,7 @@ The tenant ID of the license resource. Default is the tenant ID of the current s
- Required: No
- Type: string
- Default: `[tenant().tenantId]`
- MinValue: 8

## Outputs

Expand Down
11 changes: 6 additions & 5 deletions avm/res/hybrid-compute/license/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ param location string = resourceGroup().location
])
param licenseDetailEdition string = 'Standard'

@description('Optional. Describes the number of processors.')
param licenseDetailProcessors int = 2
@description('Optional. Provide the amount needed for this ESU licens. The minimum number of cores is 16 for physical and 8 for virtual core license.')
@minValue(8)
param licenseDetailProcessors int = 8

@description('Optional. Describes the license state.')
@description('Optional. Activate or Deactivate the license billing cycle. Billing will not start until the license is activated.')
@allowed([
'Active'
'Deactivated'
])
param licenseDetailState string = 'Active'
param licenseDetailState string = 'Deactivated'

@description('Optional. Describes the license target server.')
@allowed([
Expand All @@ -31,7 +32,7 @@ param licenseDetailState string = 'Active'
])
param licenseDetailTarget string = 'Windows Server 2012 R2'

@description('Optional. Describes the license core type (pCore or vCore).')
@description('Optional. Provide the core type (vCore or pCore) needed for this ESU licens.')
@allowed([
'pCore'
'vCore'
Expand Down
13 changes: 7 additions & 6 deletions avm/res/hybrid-compute/license/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.33.93.31351",
"templateHash": "17846338208131133417"
"templateHash": "2450279209791185954"
},
"name": "Azure Arc License",
"description": "This module deploys an Azure Arc License for use with Azure Arc-enabled servers. This module should not be used for other Arc-enabled server scenarios, where the Arc License resource is created automatically by the onboarding process."
Expand Down Expand Up @@ -62,20 +62,21 @@
},
"licenseDetailProcessors": {
"type": "int",
"defaultValue": 2,
"defaultValue": 8,
"minValue": 8,
"metadata": {
"description": "Optional. Describes the number of processors."
"description": "Optional. Provide the amount needed for this ESU licens. The minimum number of cores is 16 for physical and 8 for virtual core license."
}
},
"licenseDetailState": {
"type": "string",
"defaultValue": "Active",
"defaultValue": "Deactivated",
"allowedValues": [
"Active",
"Deactivated"
],
"metadata": {
"description": "Optional. Describes the license state."
"description": "Optional. Activate or Deactivate the license billing cycle. Billing will not start until the license is activated."
}
},
"licenseDetailTarget": {
Expand All @@ -97,7 +98,7 @@
"vCore"
],
"metadata": {
"description": "Optional. Describes the license core type (pCore or vCore)."
"description": "Optional. Provide the core type (vCore or pCore) needed for this ESU licens."
}
},
"licenseVolumeLicenseDetails": {
Expand Down

0 comments on commit 179d70f

Please sign in to comment.