Azure / Azure/azure-powershell
Connect-AzContainerRegistry ExposeToken parameter undocumented
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Type of issue
Missing information
### Feedback
The documentation provides only a placeholder text for the parameter description: `{{ Fill ExposeToken Description }}`
There's also no examples of use, no mention of a different output type of the command, when the parameter/switch is used.
As for the functionality itself (aside from the documentation issue aspect):
It seems to be intended when we need to call the ACR REST API directly.
Unfortunately `Connect-AzContainerRegistry` is very slow, so having to call it each time we need a fresh access token for a call, is suicide. There also seems to be no other support for doing it (e.g. something like `Invoke-AzContainerRegistryApi`), which would handle the authentication, the base endpoint address, etc.
So if there's an ACR REST API, which is not covered by the `Az.ContainerRegistry` module, (or poorly covered, e.g. `Get-AzContainerRegistryTag` not allowing lazy paging), one has to implement everything again, even if it's implemented in `Az.ContainerRegistry`, (but not exposed).
... Or maybe there is something to support such scenario, but not documented?
### Page URL
https://learn.microsoft.com/en-us/powershell/module/az.containerregistry/connect-azcontainerregistry?view=azps-12.0.0
### Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/ContainerRegistry/ContainerRegistry/help/Connect-AzContainerRegistry.md
### Author
@mikefrobbins
### Document Id
5976e2d9-6dec-dfb6-f759-db056dd77f0e
Contributor guide
Assessment
This issue has not been assessed yet.