Skip to content

[ARM] ts: error handling improvement - use of --template-file without --version prohibited#16446

Merged
zhoxing-ms merged 5 commits intoAzure:devfrom
detienne20:ts-create-tf-version-bug
Jan 13, 2021
Merged

[ARM] ts: error handling improvement - use of --template-file without --version prohibited#16446
zhoxing-ms merged 5 commits intoAzure:devfrom
detienne20:ts-create-tf-version-bug

Conversation

@detienne20
Copy link
Copy Markdown
Contributor

Description

Bug found: az ts create does not update the template pec content when the version is not specified and no useful error message or warning is shown to specify --version is required.

This PR addresses this bug by throwing an incorrect usage error when --template-file is provided without the --version parameter present.

Testing Guide

az ts create --name TemplateSpecName --resource-group ResourceGroupName --template-file "azuredeploy.json" should result in incorrect usage error.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Jan 8, 2021

ARM

@yonzhan yonzhan added this to the S181 milestone Jan 8, 2021
@zhoxing-ms zhoxing-ms merged commit ca09633 into Azure:dev Jan 13, 2021
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.

3 participants