You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-fabric/quickstart-cluster-template.md
+72-84Lines changed: 72 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Azure Service Fabric is a distributed systems platform that makes it easy to pac
16
16
17
17
This article describes how to deploy a Service Fabric test cluster in Azure using the Resource Manager. This 5-node Windows cluster is secured with a self-signed certificate and thus only intended for instructional purposes (rather than production workloads).
18
18
19
+
We'll use Azure PowerShell to deploy the template. In addition to Azure PowerShell, you can also use the Azure portal, Azure CLI, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-portal.md).
20
+
19
21
If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account before you begin.
20
22
21
23
## Prerequisites
@@ -69,119 +71,105 @@ The script will prompt you for the following (be sure to modify *CertDNSName* an
Upon completion, the script will provide the parameter values needed for template deployment. Be sure to store these in the following variables, as they will be needed to deploy your cluster template:
76
78
77
79
```powershell
78
-
$sourceVaultId = ""
79
-
$certUrlValue = ""
80
-
$certThumbprint = ""
80
+
$certThumbprint = "<Certificate Thumbprint>"
81
+
$certUrlValue = "<Certificate URL>"
82
+
$sourceVaultId = "<Source Vault Resource Id>"
81
83
```
82
84
83
85
## Create a Service Fabric cluster
84
86
85
-
<!-- The second H2 must start with "Create a". For example, 'Create a Key Vault', 'Create a virtual machine', etc. -->
86
-
87
87
### Review the template
88
88
89
-
<!-- The first sentence must be the following sentence. The link is the quickstart template from GitHub. The link must begin with https://github.com/Azure/azure-quickstart-templates/. -->
90
-
91
-
The template used in this quickstart is from [Azure Quickstart templates]().
92
-
93
-
<!-- After the first sentence, add a JSON codefence that links to the quickstart template. Customers have provided feedback that they prefer to see the whole template; therefore, we recommend you include the whole template in your article. If your template is too long to show in the quickstart, you can instead add a sentence that says "The template for this article is too long to show here. To view the template, see ..."
<!-- After the JSON codefence, a list of each resourceType from the JSON must exist with a link to the template reference starting with /azure/templates. For example:
100
-
101
-
* [**Microsoft.KeyVault/vaults**](/azure/templates/microsoft.keyvault/vaults): create an Azure key vault.
102
-
* [**Microsoft.KeyVault/vaults/secrets**](/azure/templates/microsoft.keyvault/vaults/secrets): create an key vault secret.
103
-
104
-
The URL usually appears as, for example, https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2019-11-01/loadBalancers for loadbalancer of Microsoft.Network. Remove the API version from the URL, the URL redirects the users to the latest version.
105
-
-->
106
-
107
-
*[Azure resource type](link to the template reference)
108
-
*[Azure resource type](link to the template reference)
109
-
110
-
<!-- List additional quickstart templates. For example: [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Keyvault&pageNumber=1&sort=Popular).
111
-
Notice the resourceType and sort elements in the URL.
112
-
-->
89
+
The template used in this quickstart is from [Azure Quickstart templates](https://github.com/Azure/azure-quickstart-templates/blob/master/service-fabric-secure-cluster-5-node-1-nodetype). The template for this article is too long to show here. To view the template, see https://github.com/Azure/azure-quickstart-templates/blob/master/service-fabric-secure-cluster-5-node-1-nodetype/azuredeploy.json.
90
+
91
+
Multiple Azure resources have been defined in the template:
For an example, see Add a description. Press tab when you are done.
147
-
```
148
-
149
-
- **Portal**: A button with description **Deploy Resource Manager template to Azure**, with image **/media/<QUICKSTART FILE NAME>/deploy-to-azure.png*, must exist and have a link that starts with **https://portal.azure.com/#create/Microsoft.Template/uri/**:
150
-
151
-
```markdown
152
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-key-vault-create%2Fazuredeploy.json)
153
-
```
154
-
155
-
To get the standard button image and find more information about this deployment option, see [Use a deployment button to deploy templates from GitHub repository](/azure/azure-resource-manager/templates/deploy-to-azure-button.md).
156
-
-->
145
+
```powershell
146
+
$templateFilePath = "<full path to azuredeploy.json>"
147
+
$parameterFilePath = "<full path to azuredeploy.parameters.json>"
148
+
149
+
New-AzResourceGroupDeployment `
150
+
-ResourceGroupName $resourceGroupName `
151
+
-TemplateFile $templateFilePath `
152
+
-TemplateParameterFile $parameterFilePath `
153
+
-CertificateThumbprint $certThumbprint `
154
+
-CertificateUrlValue $certUrlValue `
155
+
-SourceVaultResourceId $sourceVaultId `
156
+
-Verbose
157
+
```
157
158
158
159
## Review deployed resources
159
160
160
-
<!-- You can also use the title "Validate the deployment"-->
161
+
161
162
162
163
## Clean up resources
163
164
164
165
When no longer needed, delete the resource group, which deletes the resources in the resource group.
165
166
166
-
<!--
167
-
168
-
Choose Azure CLI, Azure PowerShell, or Azure portal to delete the resource group. Use [Zone pivots](https://review.docs.microsoft.com/help/contribute/zone-pivots?branch=master) if you want to use multiple options. Here are the samples for Azure CLI and Azure PowerShell:
169
-
170
-
```azurecli-interactive
171
-
echo "Enter the Resource Group name:" &&
172
-
read resourceGroupName &&
173
-
az group delete --name $resourceGroupName &&
174
-
echo "Press [ENTER] to continue ..."
175
-
```
176
-
177
167
```azurepowershell-interactive
178
168
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
179
169
Remove-AzResourceGroup -Name $resourceGroupName
180
170
Write-Host "Press [ENTER] to continue..."
181
171
```
182
172
183
-
-->
184
-
185
173
## Next steps
186
174
187
175
<!-- You can either make the next steps similar to the next steps in your other quickstarts, or point users to the following tutorial.-->
0 commit comments