Skip to content

Commit 263b440

Browse files
TheDonLukeMike LucadamoCopilot
authored
adding ps support for firmwareanalysis 2025-08-02 (#28496)
Co-authored-by: Mike Lucadamo <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 5e06d22 commit 263b440

File tree

75 files changed

+1626
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1626
-443
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FirmwareAnalysis")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.4")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For information on how to develop for `Az.FirmwareAnalysis`, see [how-to.md](how
2828
2929
```yaml
3030
# pin the swagger version by using the commit id instead of branch name
31-
commit: ef348fed285ae01b78cf6afd394ad2c4c8b6da7e
31+
commit: 04b87408ba3b8afed159b3d3059bd1594c7f2dd3
3232
require:
3333
# readme.azure.noprofile.md is the common configuration file
3434
- $(this-folder)/../../readme.azure.noprofile.md
@@ -39,23 +39,13 @@ require:
3939
# - (this-folder)/relative-path-to-your-local-readme.md
4040

4141
input-file:
42-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/firmwares.json
43-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/workspaces.json
44-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/binaryHardeningResults.json
45-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/sbomComponents.json
46-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cves.json
47-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cryptoCertificates.json
48-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cryptoKeys.json
49-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/passwordHashes.json
50-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/summaries.json
51-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/common.json
52-
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/operations.json
42+
- $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2025-08-02/iotfirmwaredefense.json
5343

5444
try-require:
5545
- /swagger/fist/resource-manager/readme.powershell.md
5646

5747
# For new RP, the version is 0.1.0
58-
module-version: 0.1.0
48+
module-version: 0.2.0
5949
# Normally, title is the service name
6050
title: FirmwareAnalysis
6151
subject-prefix: $(service-name)

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/UX/Microsoft.IoTFirmwareDefense/workspaces-firmwares-summaries.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"resourceType": "workspaces/firmwares/summaries",
3-
"apiVersion": "2024-01-10",
3+
"apiVersion": "2025-08-02",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis"
66
},
77
"commands": [
88
{
99
"name": "Get-AzFirmwareAnalysisSummary",
1010
"description": "Get an analysis result summary of a firmware by name.",
11-
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries/{summaryName}",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries/{summaryType}",
1212
"help": {
1313
"learnMore": {
1414
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis/get-azfirmwareanalysissummary"
@@ -17,9 +17,9 @@
1717
{
1818
"parameters": [
1919
"-FirmwareId <String>",
20-
"-Name <String>",
2120
"-ResourceGroupName <String>",
2221
"[-SubscriptionId <String[]>]",
22+
"-Type <String>",
2323
"-WorkspaceName <String>"
2424
]
2525
}
@@ -33,10 +33,6 @@
3333
"name": "-FirmwareId",
3434
"value": "[Path.firmwareId]"
3535
},
36-
{
37-
"name": "-Name",
38-
"value": "[Path.summaryName]"
39-
},
4036
{
4137
"name": "-ResourceGroupName",
4238
"value": "[Path.resourceGroupName]"
@@ -45,6 +41,10 @@
4541
"name": "-SubscriptionId",
4642
"value": "[Path.subscriptionId]"
4743
},
44+
{
45+
"name": "-Type",
46+
"value": "[Path.summaryType]"
47+
},
4848
{
4949
"name": "-WorkspaceName",
5050
"value": "[Path.workspaceName]"

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/UX/Microsoft.IoTFirmwareDefense/workspaces-firmwares.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "workspaces/firmwares",
3-
"apiVersion": "2024-01-10",
3+
"apiVersion": "2025-08-02",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis"
66
},
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"resourceType": "workspaces/usageMetrics",
3+
"apiVersion": "2025-08-02",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzFirmwareAnalysisUsageMetric",
10+
"description": "Gets monthly usage information for a workspace.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis/get-azfirmwareanalysisusagemetric"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]",
22+
"-WorkspaceName <String>"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Gets monthly usage information for a workspace.",
30+
"parameters": [
31+
{
32+
"name": "-Name",
33+
"value": "[Path.name]"
34+
},
35+
{
36+
"name": "-ResourceGroupName",
37+
"value": "[Path.resourceGroupName]"
38+
},
39+
{
40+
"name": "-SubscriptionId",
41+
"value": "[Path.subscriptionId]"
42+
},
43+
{
44+
"name": "-WorkspaceName",
45+
"value": "[Path.workspaceName]"
46+
}
47+
]
48+
}
49+
]
50+
}
51+
]
52+
}

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/UX/Microsoft.IoTFirmwareDefense/workspaces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "workspaces",
3-
"apiVersion": "2024-01-10",
3+
"apiVersion": "2025-08-02",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.firmwareanalysis"
66
},

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Az.FirmwareAnalysis.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.FirmwareAnalysis
3-
Module Guid: e097ff3f-acb2-48da-86fe-937d86006ea5
3+
Module Guid: 5b4de3cc-6dec-4f20-9ee5-ebc729b9a384
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.firmwareanalysis
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -15,10 +15,10 @@ Microsoft Azure PowerShell: FirmwareAnalysis cmdlets
1515
Lists binary hardening analysis results of a firmware.
1616

1717
### [Get-AzFirmwareAnalysisCryptoCertificate](Get-AzFirmwareAnalysisCryptoCertificate.md)
18-
Lists cryptographic certificate analysis results found in a firmware.
18+
Lists crypto certificate analysis results of a firmware.
1919

2020
### [Get-AzFirmwareAnalysisCryptoKey](Get-AzFirmwareAnalysisCryptoKey.md)
21-
Lists cryptographic key analysis results found in a firmware.
21+
Lists crypto key analysis results of a firmware.
2222

2323
### [Get-AzFirmwareAnalysisCve](Get-AzFirmwareAnalysisCve.md)
2424
Lists CVE analysis results of a firmware.
@@ -30,22 +30,25 @@ Get firmware.
3030
Lists password hash analysis results of a firmware.
3131

3232
### [Get-AzFirmwareAnalysisSbomComponent](Get-AzFirmwareAnalysisSbomComponent.md)
33-
Lists SBOM analysis results of a firmware.
33+
Lists sbom analysis results of a firmware.
3434

3535
### [Get-AzFirmwareAnalysisSummary](Get-AzFirmwareAnalysisSummary.md)
3636
Get an analysis result summary of a firmware by name.
3737

38+
### [Get-AzFirmwareAnalysisUsageMetric](Get-AzFirmwareAnalysisUsageMetric.md)
39+
Gets monthly usage information for a workspace.
40+
3841
### [Get-AzFirmwareAnalysisWorkspace](Get-AzFirmwareAnalysisWorkspace.md)
3942
Get firmware analysis workspace.
4043

4144
### [New-AzFirmwareAnalysisFirmware](New-AzFirmwareAnalysisFirmware.md)
42-
The operation to Create a firmware.
45+
The operation to create a firmware.
4346

4447
### [New-AzFirmwareAnalysisWorkspace](New-AzFirmwareAnalysisWorkspace.md)
45-
The operation to Create a firmware analysis workspace.
48+
The operation to create a firmware analysis workspace.
4649

4750
### [New-AzFirmwareAnalysisWorkspaceUploadUrl](New-AzFirmwareAnalysisWorkspaceUploadUrl.md)
48-
The operation to get a url for file upload.
51+
Generate a URL for uploading a firmware image.
4952

5053
### [Remove-AzFirmwareAnalysisFirmware](Remove-AzFirmwareAnalysisFirmware.md)
5154
The operation to delete a firmware.
@@ -54,8 +57,8 @@ The operation to delete a firmware.
5457
The operation to delete a firmware analysis workspace.
5558

5659
### [Update-AzFirmwareAnalysisFirmware](Update-AzFirmwareAnalysisFirmware.md)
57-
The operation to Update firmware.
60+
The operation to update firmware.
5861

5962
### [Update-AzFirmwareAnalysisWorkspace](Update-AzFirmwareAnalysisWorkspace.md)
60-
The operation to Update a firmware analysis workspaces.
63+
The operation to update a firmware analysis workspaces.
6164

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Get-AzFirmwareAnalysisCryptoCertificate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzFirmwareAnalysisCryptoCertificate
99

1010
## SYNOPSIS
11-
Lists cryptographic certificate analysis results found in a firmware.
11+
Lists crypto certificate analysis results of a firmware.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Get-AzFirmwareAnalysisCryptoCertificate -FirmwareId <String> -ResourceGroupName
1818
```
1919

2020
## DESCRIPTION
21-
Lists cryptographic certificate analysis results found in a firmware.
21+
Lists crypto certificate analysis results of a firmware.
2222

2323
## EXAMPLES
2424

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Get-AzFirmwareAnalysisCryptoKey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzFirmwareAnalysisCryptoKey
99

1010
## SYNOPSIS
11-
Lists cryptographic key analysis results found in a firmware.
11+
Lists crypto key analysis results of a firmware.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Get-AzFirmwareAnalysisCryptoKey -FirmwareId <String> -ResourceGroupName <String>
1818
```
1919

2020
## DESCRIPTION
21-
Lists cryptographic key analysis results found in a firmware.
21+
Lists crypto key analysis results of a firmware.
2222

2323
## EXAMPLES
2424

src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Get-AzFirmwareAnalysisSbomComponent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzFirmwareAnalysisSbomComponent
99

1010
## SYNOPSIS
11-
Lists SBOM analysis results of a firmware.
11+
Lists sbom analysis results of a firmware.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Get-AzFirmwareAnalysisSbomComponent -FirmwareId <String> -ResourceGroupName <Str
1818
```
1919

2020
## DESCRIPTION
21-
Lists SBOM analysis results of a firmware.
21+
Lists sbom analysis results of a firmware.
2222

2323
## EXAMPLES
2424

0 commit comments

Comments
 (0)