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

Preview

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 -n

Name or ID of the repository.

--packages

Comma-separated package ids.

--registry -r

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--component

Component within --releases to target. Defaults to 'main' (apt only).

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--releases

Comma-separated apt release names or ids. Required for apt repositories.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az apr repository package remove

Preview

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 -n

Name or ID of the repository.

--packages

Comma-separated package ids.

--registry -r

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--component

Component within --releases to target. Defaults to 'main' (apt only).

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--releases

Comma-separated apt release names or ids. Required for apt repositories.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False