external help file | Module Name | online version | schema |
---|---|---|---|
Bicep-help.xml |
Bicep |
2.0.0 |
Clear the local module cache.
Clear-BicepModuleCache [-Oci] [[-Registry] <String>] [[-Repository] <String>] [[-Version] <String>]
[<CommonParameters>]
Clear-BicepModuleCache [-TemplateSpecs] [[-SubscriptionId] <String>] [[-ResourceGroup] <String>]
[[-Spec] <String>] [[-Version] <String>] [<CommonParameters>]
Clear-BicepModuleCache [-All] [<CommonParameters>]
Command to clear all or parts of the local module cache. Supports clearing both modules cached from private registries and template specs.
Clear-BicepModuleCache -Oci
Removes all modules cached from private module registries (ACR).
Clear-BicepModuleCache -TemplateSpecs
Removes all cached template specs.
Clear-BicepModuleCache -Oci -Registry mymodules.azurecr.io
Removes all modules cached from private module registry mymodules.azurecr.io
Clear-BicepModuleCache -TemplateSpecs -SubscriptionID <subscription Id>
Removes all cached from template specs for a specific subscription.
Clear-BicepModuleCache -Oci -Registry mymodules.azurecr.io -Repository Storage
Removes all cached versions of the module (repository) Storage
from mymodules.azurecr.io.
Clear-BicepModuleCache -Oci -Registry mymodules.azurecr.io -Repository Storage -Version v2
Removes version v2
of the module (repository) Storage
from mymodules.azurecr.io.
Clear the entire cache
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Clear the cache for Bicep private registries
Type: SwitchParameter
Parameter Sets: Oci
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies which module registry to clear
Type: String
Parameter Sets: Oci
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the repository to clear
Type: String
Parameter Sets: Oci
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies which resource group to clear
Type: String
Parameter Sets: TemplateSpecs
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies which template spec to clear
Type: String
Parameter Sets: TemplateSpecs
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies which subscription to clear
Type: String
Parameter Sets: TemplateSpecs
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Clear the cache for template specs
Type: SwitchParameter
Parameter Sets: TemplateSpecs
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies which version of a cached module to clear
Type: String
Parameter Sets: Oci, TemplateSpecs
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.