Skip to content

Commit

Permalink
Deploy to azure failed because I didn't grab the version in the right…
Browse files Browse the repository at this point in the history
… part of the action
  • Loading branch information
jeffpatton1971 committed Mar 11, 2022
1 parent acb1025 commit 6b7b1e9
Show file tree
Hide file tree
Showing 36 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
$TemplateFile = Get-Item -Path $_.TemplateFile;
if ($TemplateFile.BaseName -eq 'azuredeploy') {
$RepoName = $TemplateFile.Directory.Parent.Name;
$Version = $Template.ContentVersion;
$ReadmeHeader = "[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FArmReference%2F$($RepoName)%2F$($Version)%2Fazuredeploy.json)"
}
$Template = Get-Content $TemplateFile |ConvertFrom-Json;
$Version = $Template.ContentVersion;
$ContentVersion = (Get-Date).GetDateTimeFormats()[1];
Invoke-PSDocument -Module PSDocs.Azure -OutputPath "out/docs" -InputObject $TemplateFile.FullName -InstanceName $TemplateFile.BaseName;
};
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protectionPolicy | object | The Protection Policy.

```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"$schema": "https:"1.0.0.1"management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"template": "azuredeploy.json"
Expand Down
30 changes: 15 additions & 15 deletions azuredeploy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"description": "This is a reference template built fromt the API for this resource."
},
Expand Down Expand Up @@ -40,7 +40,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/sku.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"name": {
Expand All @@ -63,7 +63,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/vaults.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"name": {
Expand All @@ -87,7 +87,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionDuration.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"count": {
Expand All @@ -110,7 +110,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/dailySchedule.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"retentionDuration": {
Expand All @@ -131,7 +131,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionDuration.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"count": {
Expand All @@ -154,7 +154,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/weeklySchedule.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"daysOfTheWeek": {
Expand All @@ -178,7 +178,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionDuration.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"count": {
Expand All @@ -199,7 +199,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionScheduleWeekly.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"daysOfTheWeek": {
Expand All @@ -223,7 +223,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/monthlySchedule.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"retentionDuration": {
Expand Down Expand Up @@ -253,7 +253,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionDuration.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"count": {
Expand All @@ -276,7 +276,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/yearlySchedule.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"monthsOfYear": {
Expand Down Expand Up @@ -314,7 +314,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/retentionPolicy.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"dailySchedule": {
Expand Down Expand Up @@ -347,7 +347,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/schedulePolicy.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"schedulePolicyType": {
Expand Down Expand Up @@ -382,7 +382,7 @@
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateUri'), '/protectionPolicy.json', parameters('SasToken'))]",
"contentVersion": "1.0.0.0"
"contentVersion": "1.0.0.1"
},
"parameters": {
"name": {
Expand Down
2 changes: 1 addition & 1 deletion azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"StorageAccountName": {
"value": "armreference"
Expand Down
2 changes: 1 addition & 1 deletion docs/azureiaasvmpolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protectionPolicy | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/azureiaasvmpolicy.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/backupPolicies.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ backupPolicies | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/backupPolicies.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/dailySchedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dailySchedule | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/dailySchedule.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/daysOfTheMonth.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ daysOfTheMonth | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/daysOfTheMonth.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/monthlySchedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ monthlySchedule | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/monthlySchedule.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/protectedItems.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protectedItems | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/protectedItems.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/protectionPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protectionPolicy | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/protectionPolicy.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/retentionDuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ retentionDuration | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/retentionDuration.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/retentionPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ retentionPolicy | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/retentionPolicy.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/retentionScheduleDaily.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ retentionScheduleDaily | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/retentionScheduleDaily.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/retentionScheduleWeekly.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ retentionScheduleWeekly | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/retentionScheduleWeekly.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/schedulePolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ schedulePolicy | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/schedulePolicy.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/sku.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sku | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/sku.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/vaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ vaults | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/vaults.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/weeklySchedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ weeklySchedule | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/weeklySchedule.json"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/yearlySchedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ yearlySchedule | object |
```json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"metadata": {
"template": "reference/yearlySchedule.json"
},
Expand Down
2 changes: 1 addition & 1 deletion reference/azureiaasvmpolicy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"azureBackupRGNamePrefix": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion reference/backupPolicies.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"name": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion reference/dailySchedule.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"retentionDuration": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion reference/daysOfTheMonth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"date": {
"type": "int",
Expand Down
2 changes: 1 addition & 1 deletion reference/monthlySchedule.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"retentionDuration": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion reference/protectedItems.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"protectedItemType": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion reference/protectionPolicy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"name": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion reference/retentionDuration.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"count": {
"type": "int",
Expand Down
2 changes: 1 addition & 1 deletion reference/retentionPolicy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"dailySchedule": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion reference/retentionScheduleDaily.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"daysOfTheMonth": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion reference/retentionScheduleWeekly.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"contentVersion": "1.0.0.1",
"parameters": {
"daysOfTheWeek": {
"type": "array"
Expand Down
Loading

0 comments on commit 6b7b1e9

Please sign in to comment.