forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kay Singh
committed
Dec 4, 2015
1 parent
67415d6
commit d83efb9
Showing
11 changed files
with
142 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,126 @@ | ||
{ | ||
"$schema": "http://schemas.microsoft.org/azure/deploymentTemplate?api-version=2015-01-01-preview#", | ||
"contentVersion": "1.0", | ||
"parameters": { | ||
"accountName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The name of the Azure Automation account to deploy to." | ||
} | ||
}, | ||
"regionId": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"Japan East", | ||
"East US 2", | ||
"West Europe", | ||
"Southeast Asia", | ||
"South Central US" | ||
], | ||
"metadata": { | ||
"description": "The region to deploy the Automation account in." | ||
} | ||
}, | ||
"credentialName": { | ||
"type": "string", | ||
"defaultValue": "DefaultAzureCredential", | ||
"metadata": { | ||
"description": "DefaultAzureCredential is the name of the Automation credential used in this runbook. This credential allows you to authenticate to Azure. " | ||
} | ||
}, | ||
"userName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The username for the Azure Automation credential." | ||
} | ||
}, | ||
"password": { | ||
"type": "securestring", | ||
"metadata": { | ||
"description": "The password for the Azure Automation credential." | ||
} | ||
}, | ||
"jobId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The GUID for the runbook job to be started." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
"runbookName": "Get-AzureVMTutorial", | ||
"scriptUri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1", | ||
"runbookDescription": "Authenticates to Azure and lists all the Azure V1 VMs", | ||
"sku": "Free" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "[parameters('accountName')]", | ||
"type": "Microsoft.Automation/automationAccounts", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ ], | ||
"tags": { }, | ||
"properties": { | ||
"sku": { | ||
"name": "[variables('sku')]" | ||
"$schema": "http://schemas.microsoft.org/azure/deploymentTemplate?api-version=2015-01-01-preview#", | ||
"contentVersion": "1.0", | ||
"parameters": { | ||
"accountName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The name of the Azure Automation account to deploy to." | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "[variables('runbookName')]", | ||
"type": "runbooks", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]" | ||
], | ||
"tags": { }, | ||
"properties": { | ||
"runbookType": "Script", | ||
"logProgress": "false", | ||
"logVerbose": "false", | ||
"description": "[variables('runbookDescription')]", | ||
"publishContentLink": { | ||
"uri": "[variables('scriptUri')]", | ||
"version": "1.0.0.0" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "[parameters('credentialName')]", | ||
"type": "credentials", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]" | ||
], | ||
"tags": { }, | ||
"properties": { | ||
"userName": "[parameters('userName')]", | ||
"password": "[parameters('password')]" | ||
"regionId": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"Japan East", | ||
"East US 2", | ||
"West Europe", | ||
"Southeast Asia", | ||
"South Central US" | ||
], | ||
"metadata": { | ||
"description": "The region to deploy the Automation account in." | ||
} | ||
}, | ||
"credentialName": { | ||
"type": "string", | ||
"defaultValue": "DefaultAzureCredential", | ||
"metadata": { | ||
"description": "DefaultAzureCredential is the name of the Automation credential used in this runbook. This credential allows you to authenticate to Azure. " | ||
} | ||
}, | ||
"userName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The username for the Azure Automation credential." | ||
} | ||
}, | ||
"password": { | ||
"type": "securestring", | ||
"metadata": { | ||
"description": "The password for the Azure Automation credential." | ||
} | ||
}, | ||
"jobId": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The GUID for the runbook job to be started." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
"runbookName": "Get-AzureVMTutorial", | ||
"scriptUri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1", | ||
"runbookDescription": "Authenticates to Azure and lists all the Azure V1 VMs", | ||
"sku": "Free" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "[parameters('accountName')]", | ||
"type": "Microsoft.Automation/automationAccounts", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [], | ||
"tags": {}, | ||
"properties": { | ||
"sku": { | ||
"name": "[variables('sku')]" | ||
} | ||
}, | ||
{ | ||
"name": "[parameters('jobId')]", | ||
"type": "jobs", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]", | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'), '/runbooks/',variables('runbookName'))]" | ||
], | ||
"tags": { | ||
"key": "value" | ||
"resources": [ | ||
{ | ||
"name": "[variables('runbookName')]", | ||
"type": "runbooks", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]" | ||
], | ||
"tags": {}, | ||
"properties": { | ||
"runbookType": "Script", | ||
"logProgress": "false", | ||
"logVerbose": "false", | ||
"description": "[variables('runbookDescription')]", | ||
"publishContentLink": { | ||
"uri": "[variables('scriptUri')]", | ||
"version": "1.0.0.0" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"runbook": { | ||
"name": "[variables('runbookName')]" | ||
{ | ||
"name": "[parameters('credentialName')]", | ||
"type": "credentials", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]" | ||
], | ||
"tags": {}, | ||
"properties": { | ||
"userName": "[parameters('userName')]", | ||
"password": "[parameters('password')]" | ||
} | ||
}, | ||
{ | ||
"name": "[parameters('jobId')]", | ||
"type": "jobs", | ||
"apiVersion": "2015-01-01-preview", | ||
"location": "[parameters('regionId')]", | ||
"dependsOn": [ | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]", | ||
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'), '/runbooks/',variables('runbookName'))]" | ||
], | ||
"tags": { | ||
"key": "value" | ||
}, | ||
"properties": { | ||
"runbook": { | ||
"name": "[variables('runbookName')]" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|
||
], | ||
"outputs": {} | ||
} | ||
] | ||
} | ||
], | ||
"outputs": {} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters