你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Remove-AzContainerAppManagedEnvStorage

Delete storage for a managedEnvironment.

Syntax

Remove-AzContainerAppManagedEnvStorage
      -EnvName <String>
      -ResourceGroupName <String>
      -StorageName <String>
      [-SubscriptionId <String>]
      [-DefaultProfile <PSObject>]
      [-PassThru]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Remove-AzContainerAppManagedEnvStorage
      -InputObject <IAppIdentity>
      [-DefaultProfile <PSObject>]
      [-PassThru]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

Delete storage for a managedEnvironment.

Examples

Example 1: Delete storage for a managedEnvironment.

Remove-AzContainerAppManagedEnvStorage -EnvName azps-env -ResourceGroupName azpstest_gp -StorageName azpstestsa

Delete storage for a managedEnvironment.

Example 2: Delete storage for a managedEnvironment.

Get-AzContainerAppManagedEnvStorage -EnvName azps-env -ResourceGroupName azpstest_gp -StorageName azpstestsa | Remove-AzContainerAppManagedEnvStorage

Delete storage for a managedEnvironment.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-EnvName

Name of the Environment.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IAppIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Returns true when the command succeeds

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-StorageName

Name of the storage.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IAppIdentity

Outputs

Boolean

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <IAppIdentity>: Identity Parameter

  • [AuthConfigName <String>]: Name of the Container App AuthConfig.
  • [CertificateName <String>]: Name of the Certificate.
  • [ComponentName <String>]: Name of the Dapr Component.
  • [ContainerAppName <String>]: Name of the Container App.
  • [EnvironmentName <String>]: Name of the Managed Environment.
  • [Id <String>]: Resource identity path
  • [ReplicaName <String>]: Name of the Container App Revision Replica.
  • [ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
  • [RevisionName <String>]: Name of the Container App Revision.
  • [SourceControlName <String>]: Name of the Container App SourceControl.
  • [StorageName <String>]: Name of the storage.
  • [SubscriptionId <String>]: The ID of the target subscription.