Share via


VaultManagementClient.UpdateVault Method

Definition

Overloads

UpdateVault(PSKeyVault, PSKeyVaultAccessPolicy[], Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, PSKeyVaultNetworkRuleSet, IMicrosoftGraphClient)

Update an existing vault. Only EnabledForDeployment and AccessPolicies can be updated currently.

UpdateVault(PSKeyVault, VaultCreationOrUpdateParameters, IMicrosoftGraphClient)

Update an existing vault. Only EnablePurgeProtection, EnableRbacAuthorization and Tags can be updated currently.

UpdateVault(PSKeyVault, PSKeyVaultAccessPolicy[], Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, PSKeyVaultNetworkRuleSet, ActiveDirectoryClient)

UpdateVault(PSKeyVault, PSKeyVaultAccessPolicy[], Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, PSKeyVaultNetworkRuleSet, IMicrosoftGraphClient)

Update an existing vault. Only EnabledForDeployment and AccessPolicies can be updated currently.

public Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault UpdateVault (Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault existingVault, Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[] updatedPolicies, bool? updatedEnabledForDeployment, bool? updatedEnabledForTemplateDeployment, bool? updatedEnabledForDiskEncryption, bool? updatedSoftDeleteSwitch, bool? updatedPurgeProtectionSwitch, bool? updatedRbacAuthorization, int? softDeleteRetentionInDays, Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet updatedNetworkAcls, Microsoft.Azure.Commands.Common.MSGraph.Version1_0.IMicrosoftGraphClient graphClient = default);
member this.UpdateVault : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault * Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[] * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet * Microsoft.Azure.Commands.Common.MSGraph.Version1_0.IMicrosoftGraphClient -> Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault
Public Function UpdateVault (existingVault As PSKeyVault, updatedPolicies As PSKeyVaultAccessPolicy(), updatedEnabledForDeployment As Nullable(Of Boolean), updatedEnabledForTemplateDeployment As Nullable(Of Boolean), updatedEnabledForDiskEncryption As Nullable(Of Boolean), updatedSoftDeleteSwitch As Nullable(Of Boolean), updatedPurgeProtectionSwitch As Nullable(Of Boolean), updatedRbacAuthorization As Nullable(Of Boolean), softDeleteRetentionInDays As Nullable(Of Integer), updatedNetworkAcls As PSKeyVaultNetworkRuleSet, Optional graphClient As IMicrosoftGraphClient = Nothing) As PSKeyVault

Parameters

existingVault
PSKeyVault

the existing vault

updatedPolicies
PSKeyVaultAccessPolicy[]

the update access policies

updatedEnabledForDeployment
Nullable<Boolean>

enabled for deployment

updatedEnabledForTemplateDeployment
Nullable<Boolean>

enabled for template deployment

updatedEnabledForDiskEncryption
Nullable<Boolean>

enabled for disk encryption

updatedSoftDeleteSwitch
Nullable<Boolean>

enabled for soft delete

updatedPurgeProtectionSwitch
Nullable<Boolean>

enabled for purge protection

updatedRbacAuthorization
Nullable<Boolean>

enabled for rbac authorization

softDeleteRetentionInDays
Nullable<Int32>

soft delete retention period (days)

updatedNetworkAcls
PSKeyVaultNetworkRuleSet

updated network rule set

graphClient
IMicrosoftGraphClient

the active directory client

Returns

the updated vault

Applies to

UpdateVault(PSKeyVault, VaultCreationOrUpdateParameters, IMicrosoftGraphClient)

Update an existing vault. Only EnablePurgeProtection, EnableRbacAuthorization and Tags can be updated currently.

public Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault UpdateVault (Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault existingVault, Microsoft.Azure.Commands.KeyVault.Models.VaultCreationOrUpdateParameters updatedParamater, Microsoft.Azure.Commands.Common.MSGraph.Version1_0.IMicrosoftGraphClient graphClient = default);
member this.UpdateVault : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault * Microsoft.Azure.Commands.KeyVault.Models.VaultCreationOrUpdateParameters * Microsoft.Azure.Commands.Common.MSGraph.Version1_0.IMicrosoftGraphClient -> Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault
Public Function UpdateVault (existingVault As PSKeyVault, updatedParamater As VaultCreationOrUpdateParameters, Optional graphClient As IMicrosoftGraphClient = Nothing) As PSKeyVault

Parameters

existingVault
PSKeyVault

the existing vault

updatedParamater
VaultCreationOrUpdateParameters

updated paramater

graphClient
IMicrosoftGraphClient

the active directory client

Returns

the updated vault

Applies to

UpdateVault(PSKeyVault, PSKeyVaultAccessPolicy[], Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, PSKeyVaultNetworkRuleSet, ActiveDirectoryClient)

public Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault UpdateVault (Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault existingVault, Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[] updatedPolicies, bool? updatedEnabledForDeployment, bool? updatedEnabledForTemplateDeployment, bool? updatedEnabledForDiskEncryption, bool? updatedSoftDeleteSwitch, bool? updatedPurgeProtectionSwitch, Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet updatedNetworkAcls, Microsoft.Azure.ActiveDirectory.GraphClient.ActiveDirectoryClient adClient = default);
member this.UpdateVault : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault * Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[] * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet * Microsoft.Azure.ActiveDirectory.GraphClient.ActiveDirectoryClient -> Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault
Public Function UpdateVault (existingVault As PSKeyVault, updatedPolicies As PSKeyVaultAccessPolicy(), updatedEnabledForDeployment As Nullable(Of Boolean), updatedEnabledForTemplateDeployment As Nullable(Of Boolean), updatedEnabledForDiskEncryption As Nullable(Of Boolean), updatedSoftDeleteSwitch As Nullable(Of Boolean), updatedPurgeProtectionSwitch As Nullable(Of Boolean), updatedNetworkAcls As PSKeyVaultNetworkRuleSet, Optional adClient As ActiveDirectoryClient = Nothing) As PSKeyVault

Parameters

existingVault
PSKeyVault
updatedPolicies
PSKeyVaultAccessPolicy[]
updatedEnabledForDeployment
Nullable<Boolean>
updatedEnabledForTemplateDeployment
Nullable<Boolean>
updatedEnabledForDiskEncryption
Nullable<Boolean>
updatedSoftDeleteSwitch
Nullable<Boolean>
updatedPurgeProtectionSwitch
Nullable<Boolean>
updatedNetworkAcls
PSKeyVaultNetworkRuleSet
adClient
Microsoft.Azure.ActiveDirectory.GraphClient.ActiveDirectoryClient

Returns

Applies to