Azure / Azure/azure-cli

Azure Firewall Packet Capture Feature Support

Open
#29,905 2 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
Azure CLI Team feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

**Is your feature request related to a problem? Please describe.**
The feature request is for a newly added azure firewall feature to take packet captures for customers as a trouble shooting tool. The support is present for powershell/swagger and rest calls but for GA we are required to support CLI as well

**Describe the solution you'd like**
We would like to follow the same design as the powershell commands used to trigger a packet capture. Attaching a link to the packet capture commands and the swagger spec for more context.

The support will be to create packet capture filters, create packet capture parameters and invoke a packet capture using CLI similar to what is supported in powershell.

CmdLet Review PR:

[https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/1386](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell-cmdlet-review-pr%2Fissues%2F1386&data=05%7C02%7CNikhil.Padhye%40microsoft.com%7C069924e824d84d802e3f08dccd880e29%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638611231494286071%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=m%2BWvzaHHknp9RivNF9XlIpxKb6q5U49ntBPrGfmmVnY%3D&reserved=0)

Powershell PRs:

[Adding support for AzureFirewallPacketCapture in powershell by nikhilpadhye1 · Pull Request #24003 · Azure/azure-powershell (github.com)](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fpull%2F24003&data=05%7C02%7CNikhil.Padhye%40microsoft.com%7C069924e824d84d802e3f08dccd880e29%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638611231494291395%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=0P2M%2Fk3YfzfpihLd5y7FfpC%2F9jajyYmSvLqIcGVd%2Fr0%3D&reserved=0)

[fixing packet capture call to be async by nikhilpadhye1 · Pull Request #25888 · Azure/azure-powershell (github.com)](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fpull%2F25888&data=05%7C02%7CNikhil.Padhye%40microsoft.com%7C069924e824d84d802e3f08dccd880e29%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638611231494296170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Hf9t%2BqQHZKHVrisDCQGnCbCqKpVZ3AFiSzQeMArW%2F%2BY%3D&reserved=0)

Swagger PRs:

[https://github.com/Azure/azure-rest-api-specs/pull/23114](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F23114&data=05%7C02%7CNikhil.Padhye%40microsoft.com%7C069924e824d84d802e3f08dccd880e29%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638611231494300824%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=axrD4sWhv3%2B6g0%2FwIhJagA8XtVxeLx2VJVSr7kUJQ2I%3D&reserved=0)

[Moving missed changes from 2023-11-01 packet capture swagger fix to l… by nikhilpadhye1 · Pull Request #29473 · Azure/azure-rest-api-specs (github.com)](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F29473&data=05%7C02%7CNikhil.Padhye%40microsoft.com%7C069924e824d84d802e3f08dccd880e29%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638611231494305447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=fxZ1cOBL%2BOAnHtHQP16y7OyfDh%2B%2BRx2I0nWB8PI7BAc%3D&reserved=0)

**Describe alternatives you've considered**
N/A - this is a requirement for GA of the packet capture feature for azure firewall.

**Additional context**
Was asked to create this request after creating an email thread as seen in the screenshot below.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.