Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: Automation Account module failing on one of the test files due to the jobSchedule property #1792

Closed
ahmadabdalla opened this issue Aug 18, 2022 · 0 comments · Fixed by #1794
Assignees
Labels
bug Something isn't working

Comments

@ahmadabdalla
Copy link
Contributor

Describe the bug

We have introduced a change a while back that replaces the name of the job schedule name from a GUID into the uniqueString()
function. As per the below commit history:

image

The unique string function does not produce a GUID according to the requirement of this parameter. Hence that is failing the job and we get the below error:

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": ""
    }
  ]
}

The jobSchedule name has to be a GUID and is not something we can control. Running the template multiple times although submitting a new guid, doesn't actually keep adding more job schedules. It just links the runbook to the schedule and maintains the original guid created

To reproduce

Simply run the automation accounts module workflow

Code snippet

name: contains(jobSchedule, 'name') ? jobSchedule.name : uniqueString(name, subscription().id)



@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)

Relevant log output

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": ""
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Closed
1 participant