Deploy via azd
Use this path when the workspace already has an azure.yaml whose service host is appservice.
When to use
| Condition | Use azd? |
|---|---|
azure.yaml exists AND services.<name>.host: appservice | ✅ Yes |
azure.yaml exists but targets Container Apps / Functions / etc. | ❌ Hand off to azure-prepare |
No azure.yaml | ❌ Use deploy-azcli.md |
Confirm host target
bash
# Look for `host: appservice` under services in azure.yaml
grep -E "host:\s*appservice" azure.yamlpowershell
# Look for `host: appservice` under services in azure.yaml
Select-String -Path azure.yaml -Pattern 'host:\s*appservice'If no match → use the az CLI path.
Authenticate
bash
azd auth login --check-status || azd auth loginpowershell
azd auth login --check-status
if ($LASTEXITCODE -ne 0) { azd auth login }Provision (first time only)
If no azd environment exists in this folder:
bash