Snippets/arm-networksecuritygroup.snippets.ps1xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version='1.0' encoding='utf-8' ?>
    <Snippets xmlns='http://schemas.microsoft.com/PowerShell/Snippets'>
        <Snippet Version='1.0.0'>
            <Header>
                <Title>arm-networksecuritygroup</Title>
                <Description>This snippet adds a Microsoft Azure Resource Manager (ARM) Network Security Group (NSG) resource.</Description>
                <Author>Trevor Sullivan &lt;trevor@trevorsullivan.net</Author>
                <SnippetTypes>
                    <SnippetType>Expansion</SnippetType>
                </SnippetTypes>
            </Header>

            <Code>
                <Script Language='PowerShell' CaretOffset='0'>
                    <![CDATA[ {
          "type": "Microsoft.Network/networkSecurityGroups",
          "apiVersion": "2016-03-30",
          "name": "ArtofShell-WebServers",
          "location": "West US",
          "properties": {
              "securityRules": [
                  {
                      "name": "InboundSSL",
                      "properties": {
                          "access": "Allow",
                          "description": "Rule Description goes here.",
                          "direction": "Inbound",
                          "priority": 500,
                          "protocol": "Tcp/Udp/*",
                          "sourceAddressPrefix": "*",
                          "destinationAddressPrefix": "10.5.0.0/24",
                          "destinationPortRange": "443",
                          "sourcePortRange": "*"
                      }
                  }
              ]
          }
      }]]>
                </Script>
            </Code>

    </Snippet>
</Snippets>