-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{ARM} az deployment: Support using none in .bicepparam parameter files
#32750
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
Merged
yanzhudd
merged 7 commits into
Azure:dev
from
polatengin:polatengin/bicepparam-using-none-support
Feb 6, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4ea1eb4
[Resource] Support 'using none' in .bicepparam files for deployment c…
polatengin 167e77f
Update src/azure-cli/azure/cli/command_modules/resource/_bicep.py
polatengin 8916169
Update src/azure-cli/azure/cli/command_modules/resource/_bicep.py
polatengin 2779d86
Update src/azure-cli/azure/cli/command_modules/resource/tests/latest/…
polatengin 31c31d5
Use on-disk using_none_with_comments_params.bicepparam fixture in uni…
polatengin 82a6df1
Handle block comments (/* */) in is_using_none_bicepparam_file
polatengin 1937e54
Add live test for 'using none' bicepparam with JSON template
polatengin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...e/cli/command_modules/resource/tests/latest/data/bicepparam/storage_account_template.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
| "contentVersion": "1.0.0.0", | ||
| "parameters": { | ||
| "location": { | ||
| "type": "string" | ||
| }, | ||
| "kind": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "variables": { | ||
| "storageAccountName": "[format('clistore{0}', uniqueString(resourceGroup().id))]" | ||
| }, | ||
| "resources": [ | ||
| { | ||
| "type": "Microsoft.Storage/storageAccounts", | ||
| "apiVersion": "2019-04-01", | ||
| "name": "[variables('storageAccountName')]", | ||
| "location": "[parameters('location')]", | ||
| "sku": { | ||
| "name": "Standard_LRS" | ||
| }, | ||
| "kind": "[parameters('kind')]", | ||
| "properties": {} | ||
| } | ||
| ] | ||
| } |
5 changes: 5 additions & 0 deletions
5
...re/cli/command_modules/resource/tests/latest/data/bicepparam/using_none_params.bicepparam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using none | ||
|
|
||
| param location = 'westus2' | ||
|
|
||
| param kind = 'StorageV2' |
8 changes: 8 additions & 0 deletions
8
..._modules/resource/tests/latest/data/bicepparam/using_none_with_comments_params.bicepparam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // This is a comment | ||
| // Another comment | ||
|
|
||
| using none | ||
|
|
||
| param location = 'westus2' | ||
|
|
||
| param kind = 'StorageV2' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.