Skip to content

Commit 477e1b7

Browse files
Fix Publish-AzBicepModule arg handling (#23403)
* Fix Publish-AzBicepModule arg handling * fix documentationUri * Update changelog --------- Co-authored-by: Stephen Weatherford <Stephen.Weatherford.com>
1 parent 06171f4 commit 477e1b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Resources/ResourceManager/Utilities/BicepUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ public void PublishFile(string bicepFilePath, string target, string documentatio
143143
throw new AzPSArgumentException(Properties.Resources.InvalidBicepFilePath, "File");
144144
}
145145

146-
string bicepPublishCommand = $"publish {GetQuotedFilePath(bicepFilePath)} --target '{target}'";
146+
string bicepPublishCommand = $"publish {GetQuotedFilePath(bicepFilePath)} --target {GetQuotedFilePath(target)}";
147147
if (!string.IsNullOrWhiteSpace(documentationUri))
148148
{
149149
CheckMinimalVersionRequirement(MinimalVersionRequirementForBicepPublishWithOptionalDocumentationUriParameter);
150-
bicepPublishCommand += $" --documentationUri '{documentationUri}'";
150+
bicepPublishCommand += $" --documentationUri {GetQuotedFilePath(documentationUri)}";
151151
}
152152

153153
if (force)

src/Resources/Resources/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
## Upcoming Release
2222
* Used utf8 encoding for reading stdout & stderr when invoking Bicep. [#23246]
23+
* Fixed regression in `Publish-AzBicepModule` [Azure/bicep/12461](https://github.com/Azure/bicep/issues/12461)
2324

2425
## Version 6.12.0
2526
* Supported $ref statements for user-defined types in Bicep files.

0 commit comments

Comments
 (0)