Packaging a service

To package our service, we will use Yeoman with the SF Yeoman container generator. To do so, you have to install them—in your command line, execute the following two commands:

npm install -g yonpm install -g generator-azuresfcontainer

We will need one more thing—because the container image will be fetched from ACR, we have to configure its credentials in ApplicationManifest.xml. While the username can be traditionally found on the Overview blade of Container Registry, to find a password you have to run these two commands:

az acr login --name {REGISTRY_NAME}az acr credential show -n {REGISTRY_NAME} --query passwords[0].value

Now, we will need to update the manifest generated by Yeoman so it uses our credentials:

<ServiceManifestImport> ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.