Skip to content

Commit

Permalink
remove bicep support on templateUri
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyZhou committed Feb 18, 2021
1 parent 548b717 commit e9b3a70
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected ResourceWithParameterCmdletBase()
public string TemplateFile { get; set; }

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

public virtual object GetDynamicParameters()
{
if (BicepUtility.IsBicepFile(TemplateFile) ||
BicepUtility.IsBicepFile(TemplateUri))
if (BicepUtility.IsBicepFile(TemplateFile))
BuildAndUseBicepTemplate();

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

protected void BuildAndUseBicepTemplate()
{
if (BicepUtility.IsBicepFile(TemplateFile))
{
TemplateFile = BicepUtility.BuildFile(this.ExecuteScript<Object>, this.ResolvePath(TemplateFile));
}

if (BicepUtility.IsBicepFile(TemplateUri))
{
TemplateUri = BicepUtility.BuildFile(this.ExecuteScript<Object>, TemplateUri);
}
TemplateFile = BicepUtility.BuildFile(this.ExecuteScript<Object>, this.ResolvePath(TemplateFile));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Accept wildcard characters: False
```
### -TemplateParameterUri
Uri to the template parameter file. Supported template file type: json and bicep.
Uri to the template parameter file.
```yaml
Type: System.String
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources/help/New-AzDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ Accept wildcard characters: False
```

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

```yaml
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources/help/New-AzTenantDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources/help/Test-AzDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Specifies the URI of a template file. Supported template file type: json and bicep.
Specifies the URI of a template file.
```yaml
Type: System.String
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources/help/Test-AzTenantDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Accept wildcard characters: False
```
### -TemplateUri
Uri to the template file. Supported template file type: json and bicep.
Uri to the template file.
```yaml
Type: System.String
Expand Down

0 comments on commit e9b3a70

Please sign in to comment.