Skip to content

Commit e9b3a70

Browse files
committed
remove bicep support on templateUri
1 parent 548b717 commit e9b3a70

13 files changed

+15
-24
lines changed

src/Resources/ResourceManager/Implementation/CmdletBase/ResourceWithParameterCmdletBase.cs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected ResourceWithParameterCmdletBase()
123123
public string TemplateFile { get; set; }
124124

125125
[Parameter(ParameterSetName = TemplateUriParameterObjectParameterSetName,
126-
Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file. Supported template file type: json and bicep.")]
126+
Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")]
127127
[Parameter(ParameterSetName = TemplateUriParameterFileParameterSetName,
128128
Mandatory = true, ValueFromPipelineByPropertyName = true)]
129129
[Parameter(ParameterSetName = TemplateUriParameterUriParameterSetName,
@@ -172,8 +172,7 @@ public ITemplateSpecsClient TemplateSpecsClient
172172

173173
public virtual object GetDynamicParameters()
174174
{
175-
if (BicepUtility.IsBicepFile(TemplateFile) ||
176-
BicepUtility.IsBicepFile(TemplateUri))
175+
if (BicepUtility.IsBicepFile(TemplateFile))
177176
BuildAndUseBicepTemplate();
178177

179178
if (!this.IsParameterBound(c => c.SkipTemplateParameterPrompt))
@@ -417,15 +416,7 @@ protected string[] GetStaticParameterNames()
417416

418417
protected void BuildAndUseBicepTemplate()
419418
{
420-
if (BicepUtility.IsBicepFile(TemplateFile))
421-
{
422-
TemplateFile = BicepUtility.BuildFile(this.ExecuteScript<Object>, this.ResolvePath(TemplateFile));
423-
}
424-
425-
if (BicepUtility.IsBicepFile(TemplateUri))
426-
{
427-
TemplateUri = BicepUtility.BuildFile(this.ExecuteScript<Object>, TemplateUri);
428-
}
419+
TemplateFile = BicepUtility.BuildFile(this.ExecuteScript<Object>, this.ResolvePath(TemplateFile));
429420
}
430421
}
431422
}

src/Resources/Resources/help/Get-AzDeploymentWhatIfResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Accept wildcard characters: False
319319
```
320320
321321
### -TemplateUri
322-
Uri to the template file. Supported template file type: json and bicep.
322+
Uri to the template file.
323323
324324
```yaml
325325
Type: System.String

src/Resources/Resources/help/Get-AzManagementGroupDeploymentWhatIfResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Accept wildcard characters: False
349349
```
350350
351351
### -TemplateUri
352-
Uri to the template file. Supported template file type: json and bicep.
352+
Uri to the template file.
353353
354354
```yaml
355355
Type: System.String

src/Resources/Resources/help/Get-AzResourceGroupDeploymentWhatIfResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Accept wildcard characters: False
344344
```
345345
346346
### -TemplateUri
347-
Uri to the template file. Supported template file type: json and bicep.
347+
Uri to the template file.
348348
349349
```yaml
350350
Type: System.String

src/Resources/Resources/help/Get-AzTenantDeploymentWhatIfResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Accept wildcard characters: False
306306
```
307307
308308
### -TemplateParameterUri
309-
Uri to the template parameter file. Supported template file type: json and bicep.
309+
Uri to the template parameter file.
310310
311311
```yaml
312312
Type: System.String

src/Resources/Resources/help/New-AzDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Accept wildcard characters: False
412412
```
413413
414414
### -TemplateUri
415-
Uri to the template file. Supported template file type: json and bicep.
415+
Uri to the template file.
416416
417417
```yaml
418418
Type: System.String

src/Resources/Resources/help/New-AzManagementGroupDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Accept wildcard characters: False
440440
```
441441
442442
### -TemplateUri
443-
Uri to the template file. Supported template file type: json and bicep.
443+
Uri to the template file.
444444
445445
```yaml
446446
Type: System.String

src/Resources/Resources/help/New-AzResourceGroupDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Accept wildcard characters: False
524524
```
525525

526526
### -TemplateUri
527-
Specifies the URI of a template file. Supported template file type: json and bicep.
527+
Specifies the URI of a template file.
528528
This file can be a custom template or a gallery template that is saved as a JSON file, such as by using **Save-AzResourceGroupGalleryTemplate**.
529529

530530
```yaml

src/Resources/Resources/help/New-AzTenantDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ Accept wildcard characters: False
407407
```
408408
409409
### -TemplateUri
410-
Uri to the template file. Supported template file type: json and bicep.
410+
Uri to the template file.
411411
412412
```yaml
413413
Type: System.String

src/Resources/Resources/help/Test-AzDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Accept wildcard characters: False
302302
```
303303
304304
### -TemplateUri
305-
Uri to the template file. Supported template file type: json and bicep.
305+
Uri to the template file.
306306
307307
```yaml
308308
Type: System.String

src/Resources/Resources/help/Test-AzManagementGroupDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Accept wildcard characters: False
323323
```
324324
325325
### -TemplateUri
326-
Uri to the template file. Supported template file type: json and bicep.
326+
Uri to the template file.
327327
328328
```yaml
329329
Type: System.String

src/Resources/Resources/help/Test-AzResourceGroupDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Accept wildcard characters: False
369369
```
370370
371371
### -TemplateUri
372-
Specifies the URI of a template file. Supported template file type: json and bicep.
372+
Specifies the URI of a template file.
373373
374374
```yaml
375375
Type: System.String

src/Resources/Resources/help/Test-AzTenantDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Accept wildcard characters: False
304304
```
305305
306306
### -TemplateUri
307-
Uri to the template file. Supported template file type: json and bicep.
307+
Uri to the template file.
308308
309309
```yaml
310310
Type: System.String

0 commit comments

Comments
 (0)