Azure / Azure/azure-powershell

Connect-AzContainerRegistry ExposeToken parameter undocumented

Open
#25,482 5 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Azure PS Team Container Registry customer-reported Tracking
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

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.