az apr repository package
Note
This reference is part of the apr extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an az apr repository package command. Learn more about extensions.
Command group 'apr repository' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage the packages contained in a repository.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az apr repository package add |
Add packages to a repository. |
Extension | Preview |
| az apr repository package remove |
Remove packages from a repository. |
Extension | Preview |
az apr repository package add
Command group 'apr repository package' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add packages to a repository.
az apr repository package add --name
--packages
--registry
[--acquire-policy-token]
[--change-reference]
[--component]
[--no-wait]
[--releases]
[--resource-group]
Examples
Add packages to a repository.
az apr repository package add -g myrg -r myregistry -n myrepo --packages pkg1,pkg2
Add packages to a specific release of an apt repository.
az apr repository package add -g myrg -r myregistry -n myrepo --packages pkg1 --releases jammy
Add packages to multiple releases of an apt repository.
az apr repository package add -g myrg -r myregistry -n myrepo --packages pkg1 --releases jammy,focal
Add packages to a specific component of an apt release.
az apr repository package add -g myrg -r myregistry -n myrepo --packages pkg1 --releases jammy --component contrib
Required Parameters
Name or ID of the repository.
Comma-separated package ids.
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Component within --releases to target. Defaults to 'main' (apt only).
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Comma-separated apt release names or ids. Required for apt repositories.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az apr repository package remove
Command group 'apr repository package' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove packages from a repository.
az apr repository package remove --name
--packages
--registry
[--acquire-policy-token]
[--change-reference]
[--component]
[--no-wait]
[--releases]
[--resource-group]
[--yes]
Examples
Remove packages from a repository.
az apr repository package remove -g myrg -r myregistry -n myrepo --packages pkg1,pkg2
Remove packages from a specific component of an apt release.
az apr repository package remove -g myrg -r myregistry -n myrepo --packages pkg1 --releases jammy --component contrib
Required Parameters
Name or ID of the repository.
Comma-separated package ids.
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Component within --releases to target. Defaults to 'main' (apt only).
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Comma-separated apt release names or ids. Required for apt repositories.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |