Hello,
Excited to get this to work. Unfortunately haven't made it to the finish line. I have recreated this twice running from the web CLI. Is running it from there not supported? Our machines are so locked down that I can not run it locally. After the "Building and pushing Docker image using Azure Container Registry tasks" it changes from my dev subscription to my production subscription.
Steps to reproduce:
git clone https://github.com/satomic/copilot-usage-advanced-dashboard.git
cd copilot-usage-advanced-dashboard
azd init
azd env set GITHUB_PAT ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
azd env set GITHUB_ORGANIZATION_SLUGS org_slug
azd up
mark [ ~/copilot-usage-advanced-dashboard ]$ azd up
(✓) Done: Downloading Bicep
? Select an Azure Subscription to use: 1. Dev/Test Subscription (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
? Enter a value for the 'location' infrastructure parameter: 49. (US) East US 2 (eastus2)
? Pick a resource group to use: 1. Create a new resource group
? Enter a name for the new resource group: rg-copilot-usage-dashboard-env
Packaging services (azd package)
(✓) Done: Packaging service elastic-search
(✓) Done: Packaging service grafana
Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.
Subscription: Dev/Test Subscription (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Location: East US 2
You can view detailed progress in the Azure Portal:
https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/xxxxxxxxxx
(✓) Done: Container Registry: xxxxx(18.545s)
(✓) Done: Log Analytics workspace: log-xxxxx(19.956s)
(✓) Done: Key Vault: kv-xxxx(20.743s)
(✓) Done: Virtual Network: vnet-xxxxx(7.072s)
(✓) Done: Application Insights: appi-xxxxx(4.239s)
(✓) Done: Portal dashboard: dash-xxxxx(1.202s)
(✓) Done: Storage account: xxxxx(20.056s)
(✓) Done: Container Apps Environment: cae-xxxxx(4m30.064s)
(✓) Done: Container App: elastic-search (17.685s)
(✓) Done: Container App: grafana (19.988s)
Deploying services (azd deploy)
(✓) Done: Deploying service elastic-search
(✓) Done: Deploying service grafana
Loading azd .env file from current environment
Successfully loaded env vars from .env file.
is provisioned: true
Resource Group: rg-copilot-usage-dashboard-env
Environment: cae-xxxxxxx
Job Name: update-grafana
Login Server: xxxxxxxxx.azurecr.io
Image: xxxxxxxx.azurecr.io/copilot-usage-advanced-dashboard/update-grafana-job:azd-xxxxxxxxx
Project Directory: /home/mark/copilot-usage-advanced-dashboard/src/cpuad-updater/grafana
Building and pushing Docker image using Azure Container Registry tasks...
The login server endpoint suffix '.azurecr.io' is automatically omitted.
The resource with name 'xxxxxxxxx' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'Production Subscription(yyyyyyyyyyyyyyyy)'.
ACR build failed
ERROR: error executing step command 'deploy --all': failed running post hooks: 'postdeploy' hook failed with exit code: '1', Path: '/tmp/azd-postdeploy-xxxxxxxx.sh'. : exit code: 1
Hello,
Excited to get this to work. Unfortunately haven't made it to the finish line. I have recreated this twice running from the web CLI. Is running it from there not supported? Our machines are so locked down that I can not run it locally. After the "Building and pushing Docker image using Azure Container Registry tasks" it changes from my dev subscription to my production subscription.
Steps to reproduce:
git clone https://github.com/satomic/copilot-usage-advanced-dashboard.git
cd copilot-usage-advanced-dashboard
azd init
azd env set GITHUB_PAT ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
azd env set GITHUB_ORGANIZATION_SLUGS org_slug
azd up
mark [ ~/copilot-usage-advanced-dashboard ]$ azd up
(✓) Done: Downloading Bicep
? Select an Azure Subscription to use: 1. Dev/Test Subscription (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
? Enter a value for the 'location' infrastructure parameter: 49. (US) East US 2 (eastus2)
? Pick a resource group to use: 1. Create a new resource group
? Enter a name for the new resource group: rg-copilot-usage-dashboard-env
Packaging services (azd package)
(✓) Done: Packaging service elastic-search
(✓) Done: Packaging service grafana
Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.
Subscription: Dev/Test Subscription (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Location: East US 2
You can view detailed progress in the Azure Portal:
https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/xxxxxxxxxx
(✓) Done: Container Registry: xxxxx(18.545s)
(✓) Done: Log Analytics workspace: log-xxxxx(19.956s)
(✓) Done: Key Vault: kv-xxxx(20.743s)
(✓) Done: Virtual Network: vnet-xxxxx(7.072s)
(✓) Done: Application Insights: appi-xxxxx(4.239s)
(✓) Done: Portal dashboard: dash-xxxxx(1.202s)
(✓) Done: Storage account: xxxxx(20.056s)
(✓) Done: Container Apps Environment: cae-xxxxx(4m30.064s)
(✓) Done: Container App: elastic-search (17.685s)
(✓) Done: Container App: grafana (19.988s)
Deploying services (azd deploy)
(✓) Done: Deploying service elastic-search
(✓) Done: Deploying service grafana
Loading azd .env file from current environment
Successfully loaded env vars from .env file.
is provisioned: true
Resource Group: rg-copilot-usage-dashboard-env
Environment: cae-xxxxxxx
Job Name: update-grafana
Login Server: xxxxxxxxx.azurecr.io
Image: xxxxxxxx.azurecr.io/copilot-usage-advanced-dashboard/update-grafana-job:azd-xxxxxxxxx
Project Directory: /home/mark/copilot-usage-advanced-dashboard/src/cpuad-updater/grafana
Building and pushing Docker image using Azure Container Registry tasks...
The login server endpoint suffix '.azurecr.io' is automatically omitted.
The resource with name 'xxxxxxxxx' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'Production Subscription(yyyyyyyyyyyyyyyy)'.
ACR build failed
ERROR: error executing step command 'deploy --all': failed running post hooks: 'postdeploy' hook failed with exit code: '1', Path: '/tmp/azd-postdeploy-xxxxxxxx.sh'. : exit code: 1