Skip to content

Commit

Permalink
704 (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: azure-quickstart-templates pipeline <[email protected]>
  • Loading branch information
bmoore-msft and azure-quickstart-templates pipeline authored Oct 13, 2022
1 parent b98c036 commit 6d74446
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ param(
# Test Run Date - date to use when doing comparisons, if not current date (used for unit testing against and old cache)
[Parameter(Mandatory = $false, Position = 3)]
[datetime]
$TestDate = [DateTime]::Now
$TestDate = [DateTime]::Now,

[Parameter(Mandatory = $true)]
[PSCustomObject]
$TemplateMetadata
)

# bicep - if this is a bicep file, skip since the apiVersions are implicit (most of the time)
if( $TemplateMetadata._generator.name -eq 'bicep') {
continue
}

$foundReferences = $TemplateText |
?<ARM_Template_Function> -FunctionName 'reference|list\w{0,}'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.5.6.12127",
"templateHash": "16815708176905569328"
}
},
"parameters": {},
"functions": [],
"variables": {},
"resources": [],
"outputs": {
"oldIPReference": "[reference(resourceId('Microsoft.Network/publicIPAddresses', 'test'), '2015-06-15', 'Full')]"
}
}

0 comments on commit 6d74446

Please sign in to comment.