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

Initial commit for network analytics #334

Merged
merged 1 commit into from
Nov 3, 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-analytics/data-product/_add-user-role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product add-user-role_

Assign role to the data product.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fS9hZGR1c2Vycm9sZQ==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{}/adduserrole 2023-11-15 -->

#### examples

- Add User Role
```bash
network-analytics data-product add-user-role --data-product-name <dpname> --resource-group <rgname> --data-type-scope " " --principal-id <userid> --principal-type user --role reader --role-id " " --user-name " "
```
16 changes: 16 additions & 0 deletions Commands/network-analytics/data-product/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product create_

Create data product resource.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fQ==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{} 2023-11-15 -->

#### examples

- Create data product with all parameter
```bash
network-analytics data-product create --name dpname --resource-group rgname --location westcentralus --publisher Microsoft --product MCC --major-version 2.0.0 --owners xyz@email --key-encryption-enable Enabled --encryption-key '{"keyVaultUri":"<vaulturi>","keyName":"<keyname>","keyVersion":"<version>"}' --managed-rg '{"location":"westcentralus","name":"<mrgname>"}' --networkacls '{"virtualNetworkRule":[{"id":"<ruleid>","action":"<action>","state":"<state>"}],"ipRules":[{"value":"<value>","action":"<action>"}],"allowedQueryIpRangeList":["1.2.3.4-1.2.3.10"],"defaultAction":"Allow"}' --private-links-enabled Enabled --public-network-access Enabled --purview-account perviewaccount --purview-collection collection --redundancy Enabled --identity '{"type":"userAssigned","userAssignedIdentities":{"/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<idname>"}}' --tags '{"key1":"value1","key2":"value2"}'
```
16 changes: 16 additions & 0 deletions Commands/network-analytics/data-product/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product delete_

Delete data product resource.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fQ==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{} 2023-11-15 -->

#### examples

- Delete DP
```bash
network-analytics data-product delete --name <dpname> --resource-group <rg>
```
16 changes: 16 additions & 0 deletions Commands/network-analytics/data-product/_list-roles-assignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product list-roles-assignment_

List user roles associated with the data product.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fS9saXN0cm9sZXNhc3NpZ25tZW50cw==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{}/listrolesassignments 2023-11-15 -->

#### examples

- List roles
```bash
network-analytics data-product list-roles-assignment --data-product-name <dpname> --resource-group <rg>
```
22 changes: 22 additions & 0 deletions Commands/network-analytics/data-product/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Command] _network-analytics data-product list_

List data products by resource group.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cw==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.networkanalytics/dataproducts 2023-11-15 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts 2023-11-15 -->

#### examples

- List all DP
```bash
network-analytics data-product list
```

- List DP in RG
```bash
network-analytics data-product list --resource-group <rg>
```
16 changes: 16 additions & 0 deletions Commands/network-analytics/data-product/_remove-user-role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product remove-user-role_

Remove role from the data product.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fS9yZW1vdmV1c2Vycm9sZQ==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{}/removeuserrole 2023-11-15 -->

#### examples

- remove user role
```bash
network-analytics data-product remove-user-role --data-product-name <dpname> --resource-group <rg> --data-type-scope " " --principal-id <userid> --principal-type user --role reader --role-id " " --user-name " " --role-assignment-id " "
```
16 changes: 16 additions & 0 deletions Commands/network-analytics/data-product/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network-analytics data-product show_

Get data product resource.

## Versions

### [2023-11-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrYW5hbHl0aWNzL2RhdGFwcm9kdWN0cy97fQ==/2023-11-15.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.networkanalytics/dataproducts/{} 2023-11-15 -->

#### examples

- Get DP
```bash
network-analytics data-product show --name <dpname> --resource-group <rg>
```
26 changes: 26 additions & 0 deletions Commands/network-analytics/data-product/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Group] _network-analytics data-product_

Azure Operator Insights Data Product operations.

## Commands

- [add-user-role](/Commands/network-analytics/data-product/_add-user-role.md)
: Assign role to the data product.

- [create](/Commands/network-analytics/data-product/_create.md)
: Create data product resource.

- [delete](/Commands/network-analytics/data-product/_delete.md)
: Delete data product resource.

- [list](/Commands/network-analytics/data-product/_list.md)
: List data products by resource group.

- [list-roles-assignment](/Commands/network-analytics/data-product/_list-roles-assignment.md)
: List user roles associated with the data product.

- [remove-user-role](/Commands/network-analytics/data-product/_remove-user-role.md)
: Remove role from the data product.

- [show](/Commands/network-analytics/data-product/_show.md)
: Get data product resource.
8 changes: 8 additions & 0 deletions Commands/network-analytics/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _network-analytics_

Network Analytics command group Azure Operator Insights resource manipulation.

## Subgroups

- [data-product](/Commands/network-analytics/data-product/readme.md)
: Azure Operator Insights Data Product operations.
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
- [network](/Commands/network/readme.md)
: Manage Azure Network resources.

- [network-analytics](/Commands/network-analytics/readme.md)
: Network Analytics command group Azure Operator Insights resource manipulation.

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

Expand Down
Loading