Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module testDeployment '../../deploy.bicep' = {
name: '<<namePrefix>>-${serviceShort}-appd-001'
}
{
name: '<<namePrefix>>-appd-002'
name: '<<namePrefix>>-${serviceShort}-appd-002'
supportedOSType: 'Windows'
roleAssignments: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ param roleAssignments array = []
param tags object = {}

@description('Optional. A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application.')
param customActions object = {}
param customActions array = []

resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (enableDefaultTelemetry) {
name: 'pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-${uniqueString(deployment().name, location)}'
Expand All @@ -64,7 +64,7 @@ resource application 'Microsoft.Compute/galleries/applications@2022-03-03' = {
location: location
tags: tags
properties: {
customActions: !empty(customActions) ? [ customActions ] : null
customActions: !empty(customActions) ? customActions : null
description: applicationDefinitionDescription
endOfLifeDate: endOfLifeDate
eula: eula
Expand Down
15 changes: 9 additions & 6 deletions modules/Microsoft.Compute/galleries/applications/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Application `[Microsoft.Compute/galleries/application]`
# Application `[Microsoft.Compute/galleries/applications]`

This module deploys an Application in a Azure Compute Gallery.

Expand Down Expand Up @@ -34,18 +34,19 @@ This module deploys an Application in a Azure Compute Gallery.

| Parameter Name | Type | Default Value | Allowed Values | Description |
| :-- | :-- | :-- | :-- | :-- |
| `applicationDefinitionDescription` | string | `''` | | The description of this gallery Application resource. This property is updatable. |
| `customActions` | object | `{object}` | | A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. |
| `applicationDefinitionDescription` | string | `''` | | The description of this gallery Application Definition resource. This property is updatable. |
| `customActions` | array | `[]` | | A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. |
| `enableDefaultTelemetry` | bool | `True` | | Enable telemetry via a Globally Unique Identifier (GUID). |
| `endOfLife` | string | `''` | | The end of life date of the gallery Application. This property can be used for decommissioning purposes. This property is updatable. Allowed format: 2020-01-10T23:00:00.000Z. |
| `eula` | string | `''` | | The Eula agreement for the gallery Application. Has to be a valid URL. |
| `endOfLifeDate` | string | `''` | | The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable. Allowed format: 2020-01-10T23:00:00.000Z. |
| `eula` | string | `''` | | The Eula agreement for the gallery Application Definition. Has to be a valid URL. |
| `location` | string | `[resourceGroup().location]` | | Location for all resources. |
| `privacyStatementUri` | string | `''` | | The privacy statement uri. Has to be a valid URL. |
| `releaseNoteUri` | string | `''` | | The release note uri. Has to be a valid URL. |
| `roleAssignments` | array | `[]` | | Array of role assignment objects that contain the 'roleDefinitionIdOrName' and 'principalId' to define RBAC role assignments on this resource. In the roleDefinitionIdOrName attribute, you can provide either the display name of the role definition, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11'. |
| `supportedOSType` | string | `'Windows'` | `[Linux, Windows]` | Supported OS type of the application. |
| `supportedOSType` | string | `'Windows'` | `[Linux, Windows]` | This property allows you to specify the supported type of the OS that application is built for. |
| `tags` | object | `{object}` | | Tags for all resources. |


### Parameter Usage: `roleAssignments`

Create a role assignment for the given resource. If you want to assign a service principal / managed identity that is created in the same deployment, make sure to also specify the `'principalType'` parameter and set it to `'ServicePrincipal'`. This will ensure the role assignment waits for the principal's propagation in Azure.
Expand Down Expand Up @@ -144,6 +145,8 @@ tags: {
```

</details>
<p>

<p>
### Parameter Usage: `customActions`

Expand Down
4 changes: 2 additions & 2 deletions modules/Microsoft.Compute/galleries/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ module galleries './Microsoft.Compute/galleries/deploy.bicep' = {
name: '<<namePrefix>>-cgcom-appd-001'
}
{
name: '<<namePrefix>>-appd-002'
name: '<<namePrefix>>-cgcom-appd-002'
roleAssignments: [
{
principalIds: [
Expand Down Expand Up @@ -231,7 +231,7 @@ module galleries './Microsoft.Compute/galleries/deploy.bicep' = {
"name": "<<namePrefix>>-cgcom-appd-001"
},
{
"name": "<<namePrefix>>-appd-002",
"name": "<<namePrefix>>-cgcom-appd-002",
"roleAssignments": [
{
"principalIds": [
Expand Down