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

adding batch account template #1222

Merged
merged 6 commits into from
Dec 29, 2020
Merged

Conversation

Saglodha
Copy link
Contributor

Adding Bicep template to create azure batch account with batch service pool allocation mode.

}
}

output batchaccountFQDN string = batchaccount.properties.accountEndpoint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need a blank line after line 20 to pass the formatting test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alex-frankel , Tried adding the blank line but the cursor hits back at the end of line 20 as soon as I save the file. Could you please let me know if I am missing onto something basic? Thank you.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might have this setting enabled:
image

@alex-frankel
Copy link
Collaborator

Looks like you also need to rerun bicep build with the latest changes you have made.

@Saglodha
Copy link
Contributor Author

@alex-frankel , Thanks for the quick help! I updated the new line formatting and reran the build command too. Does this look to be correct?

default: 'BatchService'
allowed: [
'BatchService'
'Usersubscription'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are getting a warning because the casing is not correct. Change 'Usersubscription' => 'UserSubscription'.

}
},
"functions": [],
"variables": {},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to rerun bicep build to get rid of this line which was the reason your test was failing. Ensure you are using bicep v0.2.212 as we have updated the ARM Template generation logic. A bicep file with no vars should result in an ARM Template with no "variables"

Copy link
Collaborator

@alex-frankel alex-frankel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address comments to fix tests

@codecov-io
Copy link

codecov-io commented Dec 29, 2020

Codecov Report

Merging #1222 (a3ad658) into main (5c772ef) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1222   +/-   ##
=======================================
  Coverage   94.49%   94.49%           
=======================================
  Files         336      336           
  Lines       16825    16835   +10     
  Branches       14       14           
=======================================
+ Hits        15898    15908   +10     
  Misses        927      927           
Flag Coverage Δ
dotnet 95.04% <ø> (+<0.01%) ⬆️
typescript 27.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Core.IntegrationTests/Emit/TemplateEmitterTests.cs 100.00% <0.00%> (ø)
src/Bicep.Core/Emit/ScopeHelper.cs 93.27% <0.00%> (+0.61%) ⬆️

@Saglodha
Copy link
Contributor Author

@alex-frankel , thank you for pointing to right direction, I could successfully complete the tests after updating the required changes.

@alex-frankel alex-frankel merged commit 5749eff into Azure:main Dec 29, 2020
@Saglodha Saglodha deleted the batch-account-add branch December 29, 2020 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants