Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command model for az network traffic-manager #248

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/endpoint/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ Create a traffic manager endpoint.

#### examples

- Create an endpoint for a performance profile to point to an Azure Web App endpoint.
```bash
network traffic-manager endpoint create -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints --target-resource-id $MyWebApp1Id --endpoint-status enabled
```

- Create an endpoint.
```bash
network traffic-manager endpoint create -n MyTmEndpoint --profile-name MyTmProfile -g MyResourceGroup --type azureEndpoints --target-resource-id $MyWebApp1Id --subnets [{first:10.0.0.0}] --custom-headers [{name:test,value:best}]
```

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

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

#### examples

- Create an endpoint for a performance profile to point to an Azure Web App endpoint.
```bash
network traffic-manager endpoint create -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints --target-resource-id $MyWebApp1Id --endpoint-status enabled
Expand Down
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/endpoint/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ Delete a traffic manager endpoint.

#### examples

- Delete a traffic manager endpoint.
```bash
network traffic-manager endpoint delete -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
```

- Delete a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint delete --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription --type azureEndpoints
```

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

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

#### examples

- Delete a traffic manager endpoint.
```bash
network traffic-manager endpoint delete -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Get the default geographic hierarchy used by the geographic traffic routing meth

#### examples

- Get the default geographic hierarchy used by the geographic traffic routing method.
```bash
network traffic-manager endpoint show-geographic-hierarchy
```

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

<!-- mgmt-plane /providers/microsoft.network/trafficmanagergeographichierarchies/default 2022-04-01 -->

#### examples

- Get the default geographic hierarchy used by the geographic traffic routing method.
```bash
network traffic-manager endpoint show-geographic-hierarchy
Expand Down
11 changes: 11 additions & 0 deletions Commands/network/traffic-manager/endpoint/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Get the details of a traffic manager endpoint.

#### examples

- Get the details of a traffic manager endpoint.
```bash
network traffic-manager endpoint show -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
```

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

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

#### examples

- Get the details of a traffic manager endpoint.
```bash
network traffic-manager endpoint show -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
Expand Down
27 changes: 27 additions & 0 deletions Commands/network/traffic-manager/endpoint/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ Update a traffic manager endpoint.

#### examples

- Update a traffic manager endpoint to change its weight.
```bash
network traffic-manager endpoint update -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --weight 20 --type azureEndpoints
```

- Update a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint update --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --target webserver.mysite.com --type azureEndpoints
```

- Update a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint update --endpoint-status Enabled --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --type azureEndpoints
```

- Update a traffic manager endpoint.
```bash
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,scope:24}]
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,last:11.0.0.0}]
```

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

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

#### examples

- Update a traffic manager endpoint to change its weight.
```bash
network traffic-manager endpoint update -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --weight 20 --type azureEndpoints
Expand Down
11 changes: 11 additions & 0 deletions Commands/network/traffic-manager/profile/_check-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Check the availability of a relative DNS name.

#### examples

- Check the availability of 'mywebapp.trafficmanager.net' in Azure.
```bash
network traffic-manager profile check-dns -n mywebapp
```

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

<!-- mgmt-plane /providers/microsoft.network/checktrafficmanagernameavailability 2022-04-01 -->

#### examples

- Check the availability of 'mywebapp.trafficmanager.net' in Azure.
```bash
network traffic-manager profile check-dns -n mywebapp
Expand Down
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/profile/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ Create a traffic manager profile.

#### examples

- Create a traffic manager profile with performance routing.
```bash
network traffic-manager profile create -g MyResourceGroup -n MyTmProfile --routing-method Performance --unique-dns-name mywebapp --ttl 30 --protocol HTTP --port 80 --path "/"
```

- Create a traffic manager profile.
```bash
network traffic-manager profile create -n MyTmProfile -g MyResourceGroup --routing-method subnet --unique-dns-name mywebapp --custom-headers [{name:foo,value:bar}] --status-code-ranges [{min:200,max:202}] --path "/"
```

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

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

#### examples

- Create a traffic manager profile with performance routing.
```bash
network traffic-manager profile create -g MyResourceGroup -n MyTmProfile --routing-method Performance --unique-dns-name mywebapp --ttl 30 --protocol HTTP --port 80 --path "/"
Expand Down
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/profile/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ Delete a traffic manager profile.

#### examples

- Delete a traffic manager profile.
```bash
network traffic-manager profile delete -g MyResourceGroup -n MyTmProfile
```

- Delete a traffic manager profile. (autogenerated)
```bash
network traffic-manager profile delete --name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription
```

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

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

#### examples

- Delete a traffic manager profile.
```bash
network traffic-manager profile delete -g MyResourceGroup -n MyTmProfile
Expand Down
12 changes: 12 additions & 0 deletions Commands/network/traffic-manager/profile/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ List traffic manager profiles.

#### examples

- List traffic manager profiles.
```bash
network traffic-manager profile list -g MyResourceGroup
```

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

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

#### examples

- List traffic manager profiles.
```bash
network traffic-manager profile list -g MyResourceGroup
Expand Down
11 changes: 11 additions & 0 deletions Commands/network/traffic-manager/profile/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Get the details of a traffic manager profile.

#### examples

- Get the details of a traffic manager profile.
```bash
network traffic-manager profile show -g MyResourceGroup -n MyTmProfile
```

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

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

#### examples

- Get the details of a traffic manager profile.
```bash
network traffic-manager profile show -g MyResourceGroup -n MyTmProfile
Expand Down
21 changes: 21 additions & 0 deletions Commands/network/traffic-manager/profile/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ Update a traffic manager profile.

#### examples

- Update a traffic manager profile to change the TTL to 300.
```bash
network traffic-manager profile update -g MyResourceGroup -n MyTmProfile --ttl 300
```

- Update a traffic manager profile. (autogenerated)
```bash
network traffic-manager profile update --name MyTmProfile --resource-group MyResourceGroup --status Enabled
```

- Update a traffic manager profile.
```bash
network traffic-manager profile update -n MyTmProfile -g MyResourceGroup --status-code-ranges [{min:200,max:204}] --custom-headers [{name:foo,value:doo},{name:test,value:best}]
```

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

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

#### examples

- Update a traffic manager profile to change the TTL to 300.
```bash
network traffic-manager profile update -g MyResourceGroup -n MyTmProfile --ttl 300
Expand Down
Loading