Share via


IVsProjectKeyVaultManager.EnablePublishedAppToAccessKeyVaultAsync Method

Definition

Update app settings for published app and add new Key Vault access policy

public System.Threading.Tasks.Task EnablePublishedAppToAccessKeyVaultAsync (string resourceID, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy projectHierarchy, string keyVaultUri, System.Threading.CancellationToken cancellationToken, string objectId = default);
abstract member EnablePublishedAppToAccessKeyVaultAsync : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task
Public Function EnablePublishedAppToAccessKeyVaultAsync (resourceID As String, projectHierarchy As IVsHierarchy, keyVaultUri As String, cancellationToken As CancellationToken, Optional objectId As String = Nothing) As Task

Parameters

resourceID
String

ResourceId of the published app

projectHierarchy
IVsHierarchy

The project hierarchy

keyVaultUri
String

Key Vault Uri

cancellationToken
CancellationToken

Cancellation token

objectId
String

Object Id of registered service app

Returns

A Task that completes when the add policity is returned.

Applies to