Skip to content

Commit

Permalink
fixed the guid issue (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadabdalla authored Aug 19, 2022
1 parent 1a34ef8 commit 9b316e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ module automationAccount_runbooks 'runbooks/deploy.bicep' = [for (runbook, index
module automationAccount_jobSchedules 'jobSchedules/deploy.bicep' = [for (jobSchedule, index) in jobSchedules: {
name: '${uniqueString(deployment().name, location)}-AutoAccount-JobSchedule-${index}'
params: {
name: contains(jobSchedule, 'name') ? jobSchedule.name : uniqueString(name, subscription().id)
automationAccountName: automationAccount.name
runbookName: jobSchedule.runbookName
scheduleName: jobSchedule.scheduleName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@description('Optional. Name of the Automation Account job schedule. Must be a GUID. If not provided, a new GUID is generated.')
param name string = uniqueString(automationAccountName, subscription().id)
@description('Generated. Name of the Automation Account job schedule. Must be a GUID and is autogenerated. No need to provide this value.')
param name string = newGuid()

@description('Conditional. The name of the parent Automation Account. Required if the template is used in a standalone deployment.')
param automationAccountName string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ This module deploys an Azure Automation Account Job Schedule.
| Parameter Name | Type | Default Value | Description |
| :-- | :-- | :-- | :-- |
| `enableDefaultTelemetry` | bool | `True` | Enable telemetry via the Customer Usage Attribution ID (GUID). |
| `name` | string | `[uniqueString(parameters('automationAccountName'), subscription().id)]` | Name of the Automation Account job schedule. Must be a GUID. If not provided, a new GUID is generated. |
| `parameters` | object | `{object}` | List of job properties. |
| `runOn` | string | `''` | The hybrid worker group that the scheduled job should run on. |

**Generated parameters**
| Parameter Name | Type | Default Value | Description |
| :-- | :-- | :-- | :-- |
| `name` | string | `[newGuid()]` | Name of the Automation Account job schedule. Must be a GUID and is autogenerated. No need to provide this value. |


## Outputs

Expand Down

0 comments on commit 9b316e8

Please sign in to comment.