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/virtual-machines/windows/template-description.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ This example shows a typical resource section of a template for creating a speci
153
153
154
154
When you deploy resources using a template, you have to specify a version of the API to use. The example shows the virtual machine resource using this apiVersion element:
155
155
156
-
```
156
+
```json
157
157
"apiVersion": "2016-04-30-preview",
158
158
```
159
159
@@ -170,7 +170,7 @@ Use these opportunities for getting the latest API versions:
170
170
171
171
[Parameters](../../resource-group-authoring-templates.md) make it easy for you to specify values for the template when you run it. This parameters section is used in the example:
172
172
173
-
```
173
+
```json
174
174
"parameters": {
175
175
"adminUsername": { "type": "string" },
176
176
"adminPassword": { "type": "securestring" },
@@ -182,7 +182,7 @@ When you deploy the example template, you enter values for the name and password
182
182
183
183
[Variables](../../resource-group-authoring-templates.md) make it easy for you to set up values in the template that are used repeatedly throughout it or that can change over time. This variables section is used in the example:
@@ -219,7 +219,7 @@ When you deploy the example template, variable values are used for the name and
219
219
220
220
When you need more than one virtual machine for your application, you can use a copy element in a template. This optional element loops through creating the number of VMs that you specified as a parameter:
221
221
222
-
```
222
+
```json
223
223
"copy": {
224
224
"name": "virtualMachineLoop",
225
225
"count": "[parameters('numberOfInstances')]"
@@ -228,7 +228,7 @@ When you need more than one virtual machine for your application, you can use a
228
228
229
229
Also, notice in the example that the loop index is used when specifying some of the values for the resource. For example, if you entered an instance count of three, the names of the operating system disks are myOSDisk1, myOSDisk2, and myOSDisk3:
230
230
231
-
```
231
+
```json
232
232
"osDisk": {
233
233
"name": "[concat('myOSDisk', copyindex())]",
234
234
"caching": "ReadWrite",
@@ -243,7 +243,7 @@ Also, notice in the example that the loop index is used when specifying some of
243
243
244
244
Keep in mind that creating a loop for one resource in the template may require you to use the loop when creating or accessing other resources. For example, multiple VMs can’t use the same network interface, so if your template loops through creating three VMs it must also loop through creating three network interfaces. When assigning a network interface to a VM, the loop index is used to identify it:
@@ -254,7 +254,7 @@ Keep in mind that creating a loop for one resource in the template may require y
254
254
255
255
Most resources depend on other resources to work correctly. Virtual machines must be associated with a virtual network and to do that it needs a network interface. The [dependsOn](../../resource-group-define-dependencies.md) element is used to make sure that the network interface is ready to be used before the VMs are created:
@@ -264,7 +264,7 @@ Resource Manager deploys in parallel any resources that aren't dependent on anot
264
264
265
265
How do you know if a dependency is required? Look at the values you set in the template. If an element in the virtual machine resource definition points to another resource that is deployed in the same template, you need a dependency. For example, your example virtual machine defines a network profile:
@@ -293,7 +293,7 @@ In Azure, vhd files can represent [disks or images](managed-disks-overview.md?to
293
293
294
294
When you create a VM, you must decide what operating system to use. The imageReference element is used to define the operating system of a new VM. The example shows a definition for a Windows Server operating system:
295
295
296
-
```
296
+
```json
297
297
"imageReference": {
298
298
"publisher": "MicrosoftWindowsServer",
299
299
"offer": "WindowsServer",
@@ -304,7 +304,7 @@ When you create a VM, you must decide what operating system to use. The imageRef
304
304
305
305
If you want to create a Linux operating system, you might use this definition:
306
306
307
-
```
307
+
```json
308
308
"imageReference": {
309
309
"publisher": "Canonical",
310
310
"offer": "UbuntuServer",
@@ -315,7 +315,7 @@ If you want to create a Linux operating system, you might use this definition:
315
315
316
316
Configuration settings for the operating system disk are assigned with the osDisk element. The example defines a new managed disk with the caching mode set to **ReadWrite** and that the disk is being created from a [platform image](cli-ps-findimage.md):
317
317
318
-
```
318
+
```json
319
319
"osDisk": {
320
320
"name": "[concat('myOSDisk', copyindex())]",
321
321
"caching": "ReadWrite",
@@ -327,7 +327,7 @@ Configuration settings for the operating system disk are assigned with the osDis
327
327
328
328
If you want to create virtual machines from existing disks, remove the imageReference and the osProfile elements and define these disk settings:
329
329
330
-
```
330
+
```json
331
331
"osDisk": {
332
332
"osType": "Windows",
333
333
"managedDisk": {
@@ -342,7 +342,7 @@ If you want to create virtual machines from existing disks, remove the imageRefe
342
342
343
343
If you want to create a virtual machine from a managed image, change the imageReference element and define these disk settings:
@@ -360,7 +360,7 @@ If you want to create a virtual machine from a managed image, change the imageRe
360
360
361
361
You can optionally add data disks to the VMs. The [number of disks](sizes.md) depends on the size of operating system disk that you use. With the size of the VMs set to Standard_DS1_v2, the maximum number of data disks that could be added to the them is two. In the example, one managed data disk is being added to each VM:
362
362
363
-
```
363
+
```json
364
364
"dataDisks": [
365
365
{
366
366
"name": "[concat('myDataDisk', copyindex())]",
@@ -376,7 +376,7 @@ You can optionally add data disks to the VMs. The [number of disks](sizes.md) de
376
376
377
377
Although [extensions](extensions-features.md) are a separate resource, they're closely tied to VMs. Extensions can be added as a child resource of the VM or as a separate resource. The example shows the [Diagnostics Extension](extensions-diagnostics-template.md) being added to the VMs:
@@ -411,7 +411,7 @@ This extension resource uses the storageName variable and the diagnostic variabl
411
411
412
412
There are many extensions that you can install on a VM, but the most useful is probably the [Custom Script Extension](extensions-customscript.md). In the example, a PowerShell script named start.ps1 runs on each VM when it first starts:
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/deployment-guide.md
+23-14Lines changed: 23 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -784,9 +784,11 @@ This section has detailed steps for doing specific tasks in the configuration an
784
784
Check frequently for updates to the PowerShell cmdlets, which usually are updated monthly. The easiest way to check for updates is to do the preceding installation steps, up to the installation page shown in step 5. The release date and release number of the cmdlets are included on the page shown in step 5. Unless stated otherwise in SAP Note [1928533] or SAP Note [2015553], we recommend that you work with the latest version of Azure PowerShell cmdlets.
785
785
786
786
To check the version of the Azure PowerShell cmdlets that are installed on your computer, run this PowerShell command:
787
+
787
788
```powershell
788
789
(Get-Module Az.Compute).Version
789
790
```
791
+
790
792
The result looks like this:
791
793
792
794
![Result of Azure PowerShell cmdlet version check][deployment-guide-figure-600]
@@ -813,7 +815,8 @@ If the Azure cmdlet version installed on your computer is the current version, t
813
815
Check frequently for updates to Azure CLI, which usually is updated monthly. The easiest way to check for updates is to do the preceding installation steps, up to the installation page shown in step 5.
814
816
815
817
To check the version of Azure CLI that is installed on your computer, run this command:
816
-
```
818
+
819
+
```console
817
820
azure --version
818
821
```
819
822
@@ -854,13 +857,13 @@ Use the following commands to install the VM Agent for Linux:
854
857
855
858
***SUSE Linux Enterprise Server (SLES)**
856
859
857
-
```
860
+
```console
858
861
sudo zypper install WALinuxAgent
859
862
```
860
863
861
864
***Red Hat Enterprise Linux (RHEL) or Oracle Linux**
862
865
863
-
```
866
+
```console
864
867
sudo yum install WALinuxAgent
865
868
```
866
869
@@ -890,18 +893,22 @@ Configure the correct proxy in the configuration file of the Microsoft Azure Gue
890
893
Set the following parameters:
891
894
892
895
1.**HTTP proxy host**. For example, set it to **proxy.corp.local**.
893
-
```
896
+
897
+
```console
894
898
HttpProxy.Host=<proxy host>
895
899
896
900
```
901
+
897
902
1.**HTTP proxy port**. For example, set it to **80**.
898
-
```
903
+
904
+
```console
899
905
HttpProxy.Port=<port of the proxy host>
900
906
901
907
```
908
+
902
909
1. Restart the agent.
903
910
904
-
```
911
+
```console
905
912
sudo service waagent restart
906
913
```
907
914
@@ -970,19 +977,19 @@ To install the Azure Extension for SAP by using Azure CLI:
970
977
1. Install Azure classic CLI, as described in [Install the Azure classic CLI][azure-cli].
971
978
1. Sign in with your Azure account:
972
979
973
-
```
980
+
```console
974
981
azure login
975
982
```
976
983
977
984
1. Switch to Azure Resource Manager mode:
978
985
979
-
```
986
+
```console
980
987
azure config mode arm
981
988
```
982
989
983
990
1. Enable Azure Extension for SAP:
984
991
985
-
```
992
+
```console
986
993
azure vm enable-aem <resource-group-name> <vm-name>
987
994
```
988
995
@@ -991,30 +998,31 @@ To install the Azure Extension for SAP by using Azure CLI:
991
998
1. Install Azure CLI 2.0, as described in [Install Azure CLI 2.0][azure-cli-2].
992
999
1. Sign in with your Azure account:
993
1000
994
-
```
1001
+
```azurecli
995
1002
az login
996
1003
```
997
1004
998
1005
1. Install Azure CLI AEM Extension
999
1006
1000
-
```
1007
+
```azurecli
1001
1008
az extension add --name aem
1002
1009
```
1003
1010
1004
1011
1. Install the extension with
1005
1012
1006
-
```
1013
+
```azurecli
1007
1014
az vm aem set -g <resource-group-name> -n <vm name>
1008
1015
```
1009
1016
1010
1017
1. Verify that the Azure Extension for SAP is active on the Azure Linux VM. Check whether the file \\var\\lib\\AzureEnhancedMonitor\\PerfCounters exists. If it exists, at a command prompt, run this command to display information collected by the Azure Extension for SAP:
@@ -1133,6 +1141,7 @@ If some of the infrastructure data is not delivered correctly as indicated by th
1133
1141
1134
1142
1. Make sure that you have installed the latest version of the Azure PowerShell cmdlet, as described in [Deploying Azure PowerShell cmdlets][deployment-guide-4.1].
1135
1143
1. Run the following PowerShell cmdlet. For a list of available environments, run the cmdlet `Get-AzEnvironment`. To use global Azure, select the **AzureCloud** environment. For Azure in China, select **AzureChinaCloud**.
1144
+
1136
1145
```powershell
1137
1146
$env = Get-AzEnvironment -Name <name of the environment>
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/high-availability-guide-standard-load-balancer-outbound-connections.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ The configuration would look like:
99
99
1. Select the VMs and their IP addresses and add them to the backend pool
100
100
3.[Create outbound rules](https://docs.microsoft.com/azure/load-balancer/configure-load-balancer-outbound-cli#create-outbound-rule). Currently it is not possible to create outbound rules from the Azure portal. You can create outbound rules with [Azure CLI](https://docs.microsoft.com/azure/cloud-shell/overview?view=azure-cli-latest).
@@ -186,17 +186,19 @@ You could use proxy to allow Pacemaker calls to the Azure management API public
186
186
There are many different Proxy options available in the industry. Step-by-step instructions for the proxy deployment are outside of the scope of this document. In the example below, we assume that your proxy is responding to **MyProxyService** and listening to port **MyProxyPort**.
187
187
To allow pacemaker to communicate with the Azure management API, perform the following steps on all cluster nodes:
188
188
189
-
1. Edit the pacemaker configuration file /etc/sysconfig/pacemaker and add the following lines (all cluster nodes):
190
-
```
189
+
1. Edit the pacemaker configuration file /etc/sysconfig/pacemaker and add the following lines (all cluster nodes):
190
+
191
+
```console
191
192
sudo vi /etc/sysconfig/pacemaker
192
193
# Add the following lines
193
194
http_proxy=http://MyProxyService:MyProxyPort
194
195
https_proxy=http://MyProxyService:MyProxyPort
195
196
```
196
197
197
198
2. Restart the pacemaker service on **all** cluster nodes.
198
-
- SUSE
199
-
```
199
+
- SUSE
200
+
201
+
```console
200
202
# Place the cluster in maintenance mode
201
203
sudo crm configure property maintenance-mode=true
202
204
#Restart on all nodes
@@ -206,7 +208,8 @@ To allow pacemaker to communicate with the Azure management API, perform the fol
0 commit comments