Skip to content

Commit

Permalink
Merge pull request Azure#32 from ZengTaoxu/list-and-profile
Browse files Browse the repository at this point in the history
Add command model for Network
  • Loading branch information
necusjz authored Oct 8, 2022
2 parents ac5e95e + eb05803 commit 1c17923
Show file tree
Hide file tree
Showing 31 changed files with 53,921 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Commands/network/_list-service-aliases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Command] _network list-service-aliases_

List available service aliases in the region which can be used for Service Endpoint Policies.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvY2F0aW9ucy97fS9hdmFpbGFibGVzZXJ2aWNlYWxpYXNlcw==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/locations/{}/availableservicealiases 2022-01-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/locations/{}/availableservicealiases 2022-01-01 -->

#### examples

- List available service aliases in the region which can be used for Service Endpoint Policies. (autogenerated)
```bash
network list-service-aliases --location westus2
```
18 changes: 18 additions & 0 deletions Commands/network/_list-service-tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# [Command] _network list-service-tags_

List all service tags which are below to different resources

A service tag represents a group of IP address prefixes to help minimize complexity for security rule creation. To learn more about list-service-tags, visit https://docs.microsoft.com/azure/virtual-network/security-overview#service-tags. Note that the location parameter is used as a reference for version (not as a filter based on location). For example, even if you specify --location eastus2 you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to (i.e. Public, US government, China or Germany).

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL2xvY2F0aW9ucy97fS9zZXJ2aWNldGFncw==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/locations/{}/servicetags 2022-01-01 -->

#### examples

- Gets a list of service tag information resources. (autogenerated)
```bash
network list-service-tags --location westus2
```
9 changes: 9 additions & 0 deletions Commands/network/profile/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _network profile create_

Create a network profile.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 -->
16 changes: 16 additions & 0 deletions Commands/network/profile/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network profile delete_

Delete a network profile.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 -->

#### examples

- Delete a network profile. (autogenerated)
```bash
network profile delete --name MyNetworkProfile --resource-group MyResourceGroup
```
17 changes: 17 additions & 0 deletions Commands/network/profile/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Command] _network profile list_

List network profiles.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcw==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/networkprofiles 2022-01-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles 2022-01-01 -->

#### examples

- List network profiles (autogenerated)
```bash
network profile list --resource-group MyResourceGroup
```
16 changes: 16 additions & 0 deletions Commands/network/profile/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network profile show_

Get the details of a network profile.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 -->

#### examples

- Get the details of a network profile. (autogenerated)
```bash
network profile show --name MyNetworkProfile --resource-group MyResourceGroup
```
9 changes: 9 additions & 0 deletions Commands/network/profile/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _network profile update_

Update a network profile.

## Versions

### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmtwcm9maWxlcy97fQ==/2022-01-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkprofiles/{} 2022-01-01 -->
22 changes: 22 additions & 0 deletions Commands/network/profile/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Group] _network profile_

Manage network profiles.

To create a network profile, see the create command for the relevant resource. Currently, only Azure Container Instances are supported.

## Commands

- [create](/Commands/network/profile/_create.md)
: Create a network profile.

- [delete](/Commands/network/profile/_delete.md)
: Delete a network profile.

- [list](/Commands/network/profile/_list.md)
: List network profiles.

- [show](/Commands/network/profile/_show.md)
: Get the details of a network profile.

- [update](/Commands/network/profile/_update.md)
: Update a network profile.
26 changes: 26 additions & 0 deletions Commands/network/public-ip/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Command] _network public-ip create_

Create a public IP address.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 -->

#### examples

- Create a basic public IP resource.
```bash
network public-ip create -g MyResourceGroup -n MyIp
```

- Create a static public IP resource for a DNS name label.
```bash
network public-ip create -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static
```

- Create a public IP resource in an availability zone in the current resource group region.
```bash
network public-ip create -g MyResourceGroup -n MyIp --zone 2
```
16 changes: 16 additions & 0 deletions Commands/network/public-ip/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network public-ip delete_

Delete a public IP address.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 -->

#### examples

- Delete a public IP address.
```bash
network public-ip delete -g MyResourceGroup -n MyIp
```
27 changes: 27 additions & 0 deletions Commands/network/public-ip/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# [Command] _network public-ip list_

List public IP addresses.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2Vz/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/publicipaddresses 2022-05-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses 2022-05-01 -->

#### examples

- List all public IPs in a subscription.
```bash
network public-ip list
```

- List all public IPs in a resource group.
```bash
network public-ip list -g MyResourceGroup
```

- List all public IPs of a domain name label.
```bash
network public-ip list -g MyResourceGroup --query "[?dnsSettings.domainNameLabel=='MyLabel']"
```
21 changes: 21 additions & 0 deletions Commands/network/public-ip/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _network public-ip show_

Get the details of a public IP address.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 -->

#### examples

- Get information about a public IP resource.
```bash
network public-ip show -g MyResourceGroup -n MyIp
```

- Get the FQDN and IP address of a public IP resource.
```bash
network public-ip show -g MyResourceGroup -n MyIp --query "{fqdn: dnsSettings.fqdn,address: ipAddress}"
```
16 changes: 16 additions & 0 deletions Commands/network/public-ip/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network public-ip update_

Update a public IP address.

## Versions

### [2022-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9/2022-05-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{} 2022-05-01 -->

#### examples

- Update a public IP resource with a DNS name label and static allocation.
```bash
network public-ip update -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static
```
22 changes: 22 additions & 0 deletions Commands/network/public-ip/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Group] _network public-ip_

Manage public IP addresses.

To learn more about public IP addresses visit https://docs.microsoft.com/azure/virtual-network/virtual-network-public-ip-address.

## Commands

- [create](/Commands/network/public-ip/_create.md)
: Create a public IP address.

- [delete](/Commands/network/public-ip/_delete.md)
: Delete a public IP address.

- [list](/Commands/network/public-ip/_list.md)
: List public IP addresses.

- [show](/Commands/network/public-ip/_show.md)
: Get the details of a public IP address.

- [update](/Commands/network/public-ip/_update.md)
: Update a public IP address.
14 changes: 14 additions & 0 deletions Commands/network/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Manage Azure Network resources.
- [nsg](/Commands/network/nsg/readme.md)
: Manage Azure Network Security Groups (NSGs).

- [profile](/Commands/network/profile/readme.md)
: Manage network profiles.

- [public-ip](/Commands/network/public-ip/readme.md)
: Manage public IP addresses.

- [route-filter](/Commands/network/route-filter/readme.md)
: Manage route filters.

Expand All @@ -45,3 +51,11 @@ Manage Azure Network resources.

- [vnet](/Commands/network/vnet/readme.md)
: Check if a private IP address is available for use within a virtual network.

## Commands

- [list-service-aliases](/Commands/network/_list-service-aliases.md)
: List available service aliases in the region which can be used for Service Endpoint Policies.

- [list-service-tags](/Commands/network/_list-service-tags.md)
: List all service tags which are below to different resources
Loading

0 comments on commit 1c17923

Please sign in to comment.