DeploymentSlotBase.UpdateStages.WithCredentials<FluentT> Interface

Type Parameters

FluentT

the type of the resource

public static interface DeploymentSlotBase.UpdateStages.WithCredentials<FluentT>

A deployment slot update allowing docker hub credentials to be set.

Method Summary

Modifier and Type Method and Description
abstract Update<FluentT> withCredentials(String username, String password)

Specifies the username and password for Docker Hub.

default Update<FluentT> withManagedIdentityCredentials()

Specifies that the deployment slot's system-assigned managed identity is used to authenticate (pull) the image from the container registry, instead of a username and password.

default Update<FluentT> 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 DeploymentSlotBase.Update<FluentT> withCredentials(String username, String password)

Specifies the username and password for Docker Hub.

Parameters:

username - the username for Docker Hub
password - the password for Docker Hub

Returns:

the next stage of the web app update

withManagedIdentityCredentials

public default DeploymentSlotBase.Update<FluentT> withManagedIdentityCredentials()

Specifies that the deployment slot'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 slot's system-assigned managed identity and grant it the AcrPull role on the registry.

Returns:

the next stage of the web app update

withManagedIdentityCredentials

public default DeploymentSlotBase.Update<FluentT> 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 slot and grant it the AcrPull role on the registry.

Parameters:

userAssignedManagedIdentityClientId - the client ID of the user-assigned managed identity

Returns:

the next stage of the web app update

Applies to