FunctionApp.UpdateStages.WithCredentials Interface
public static interface FunctionApp.UpdateStages.WithCredentials
A function app update allowing docker hub credentials to be set.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract Update |
withCredentials(String username, String password)
Specifies the username and password for Docker Hub. |
| default Update |
withManagedIdentityCredentials()
Specifies that the function app's system-assigned managed identity is used to authenticate (pull) the image from the container registry, instead of a username and password. |
| default Update |
withManagedIdentityCredentials(String userAssignedManagedIdentityClientId)
Specifies that the given user-assigned managed identity is used to authenticate (pull) the image from the container registry, instead of a username and password. |
Method Details
withCredentials
public abstract FunctionApp.Update withCredentials(String username, String password)
Specifies the username and password for Docker Hub.
Parameters:
Returns:
withManagedIdentityCredentials
public default FunctionApp.Update withManagedIdentityCredentials()
Specifies that the function app's system-assigned managed identity is used to authenticate (pull) the image from the container registry, instead of a username and password. This is the recommended, passwordless way to pull from Azure Container Registry: enable the app's system-assigned managed identity and grant it the AcrPull role on the registry.
Returns:
withManagedIdentityCredentials
public default FunctionApp.Update withManagedIdentityCredentials(String userAssignedManagedIdentityClientId)
Specifies that the given user-assigned managed identity is used to authenticate (pull) the image from the container registry, instead of a username and password. This is the recommended, passwordless way to pull from Azure Container Registry: assign the user-assigned managed identity to the app and grant it the AcrPull role on the registry.
Parameters:
Returns: