Azure / Azure/autorest.powershell

[Feature request] Allow hiding properties displayed in list format output

Open
#970 2 comments 0 reactions 0 assignees View on GitHub
needs-author-feedback
Dominant language
C#
Stars
123
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Currently with generated psh cmdlets, we're not able to hide chosen properties from the output format list view.
For example,
Swagger link: [https://github.com/Azure/azure-rest-api-specs-pr/blob/0db757d5c33ace122a05aba3568451dc5695b60e/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/storagemover.json#L1791](url)

Current output format
```
Id : /subscriptions/[hidden]/resourceGroups/[hidden/providers/Microsoft.StorageMover/storageMovers/testStorageMover1/endpoints/testEndpoint1
Name : testEndpoint1
Property : {
"endpointType": "AzureStorageBlobContainer",
"description": "update description 1",
"provisioningState": "Succeeded",
"storageAccountResourceId": "/subscriptions/[hidden]/resourceGroups/[hidden/providers/Microsoft.Storage/storageAccounts/yifantest",
"blobContainerName": "testcontainer1"
}
SystemDataCreatedAt : 7/14/2022 6:08:21 AM
SystemDataCreatedBy : hidden@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/14/2022 7:55:31 AM
SystemDataLastModifiedBy : hidden@microsoft.com
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
```

Expected output format:
```
Name : testEndpoint1
Property : {
"endpointType": "AzureStorageBlobContainer",
"description": "update description 1",
"provisioningState": "Succeeded",
"storageAccountResourceId": "/subscriptions/[hidden]/resourceGroups/[hidden/providers/Microsoft.Storage/storageAccounts/yifantest",
"blobContainerName": "testcontainer1"
}
```

We'd like to hide SystemData related information from the list view, but the current autorest doesn't support it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.