Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

bedrock setup command fails on AzDO Project creation #70

Open
andrewDoing opened this issue Sep 25, 2020 · 2 comments
Open

bedrock setup command fails on AzDO Project creation #70

andrewDoing opened this issue Sep 25, 2020 · 2 comments

Comments

@andrewDoing
Copy link

First I tried setting project name to be an existing project, that didn't work.
With a new project name, I get the following error.

image

@andrebriggs
Copy link
Member

@andrewDoing would you mind copying and pasting the command window output when you called bedrock setup?

@andrewDoing
Copy link
Author

andrewDoing commented Sep 25, 2020

`andoing@DESKTOP-NB25GBT:~/bedrock-gitops$ bedrock setup -v
info: Enabling verbose logging
debug: stdout -> 'az --version' -> azure-cli 2.12.0

core 2.12.0
telemetry 1.0.6

Extensions:
azure-devops 0.18.0

Python location '/opt/az/bin/python3'
Extensions directory '/home/andoing/.azure/cliextensions'

Python (Linux) 3.6.10 (default, Sep 22 2020, 05:20:39)
[GCC 9.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.
debug: stdout -> 'az --version' ->
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
verbose: 'az --version' exited with code: 0
verbose: 'az --version': azure-cli 2.12.0

core 2.12.0
telemetry 1.0.6

Extensions:
azure-devops 0.18.0

Python location '/opt/az/bin/python3'
Extensions directory '/home/andoing/.azure/cliextensions'

Python (Linux) 3.6.10 (default, Sep 22 2020, 05:20:39)
[GCC 9.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
info: az cli version 2.12.0
? Enter organization name
andrewsdoing
? Enter project name
bedrock-gitops-quick
? Enter your AzDO personal access token


? Would you like to create a sample application repository? Yes
? Do you want to create a service principal? Yes
info: attempting to login to az command line
debug: stderr -> 'az login' -> To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FB7J8HZYV to authenticate.
debug: stdout -> 'az login' -> [
{
"cloudName": "AzureCloud",
"homeTenantId": "82fb9b0d-6054-4c42-9ec8-6cf8dfeed89c",
"id": "2d8b1453-e7f3-45a0-9765-2a70a3eaba4c",
"isDefault": true,
"managedByTenants": [],
"name": "Visual Studio Enterprise Subscription",
"state": "Enabled",
"tenantId": "82fb9b0d-6054-4c42-9ec8-6cf8dfeed89c",
"user": {
"name": "andrewsdoing@gmail.com",
"type": "user"
}
}
]
verbose: 'az login' exited with code: 0
verbose: 'az login': [
{
"cloudName": "AzureCloud",
"homeTenantId": "82fb9b0d-6054-4c42-9ec8-6cf8dfeed89c",
"id": "2d8b1453-e7f3-45a0-9765-2a70a3eaba4c",
"isDefault": true,
"managedByTenants": [],
"name": "Visual Studio Enterprise Subscription",
"state": "Enabled",
"tenantId": "82fb9b0d-6054-4c42-9ec8-6cf8dfeed89c",
"user": {
"name": "andrewsdoing@gmail.com",
"type": "user"
}
}
]
verbose: 'az login': To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FB7J8HZYV to authenticate.
info: Successfully login to az command line
? Select one of the subscriptions
Visual Studio Enterprise Subscription
info: attempting to create service principal with az command line
debug: stderr -> 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c' -> Creating a role assignment under the scope of "/subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c"
debug: stderr -> 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c' -> Retrying role assignment creation: 1/36
debug: stdout -> 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c' -> {
"appId": "cb353a34-e49e-4749-98e1-7b6db2ba18f6",
"displayName": "azure-cli-2020-09-25-15-48-24",
"name": "http://azure-cli-2020-09-25-15-48-24",
}
verbose: 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c' exited with code: 0
verbose: 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c': {
"appId": "cb353a34-e49e-4749-98e1-7b6db2ba18f6",
"displayName": "azure-cli-2020-09-25-15-48-24",
"name": "http://azure-cli-2020-09-25-15-48-24",
}
verbose: 'az ad sp create-for-rbac --scope /subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c': Creating a role assignment under the scope of "/subscriptions/2d8b1453-e7f3-45a0-9765-2a70a3eaba4c"
Retrying role assignment creation: 1/36
info: Successfully created service principal with az command line
? Enter Azure Container Register Name. The registry name must be unique within Azure
andoingQuickstartACR
info: creating Project, bedrock-gitops-quick.
error:
code: 1000
message: setup-cmd-failed: Setup command was not successfully executed.
code: 1200
message: azure-project-create-azure-err: Could not create Azure project.
details: The project visibility specified is invalid. Organization projects are not allowed in this organization.

azdo_org_name=andrewsdoing
azdo_project_name=bedrock-gitops-quick
azdo_pat=*********
az_create_app=true
az_create_sp=true
az_acr_name=andoingQuickstartACR
az_storage_account_name=
az_storage_table=
workspace: quick-start-env
Project Created: no
High Level Definition Repo Scaffolded: no
Helm Repo Scaffolded: no
Sample App Repo Scaffolded: no
Manifest Repo Scaffolded: no
HLD to Manifest Pipeline Created: no
Service Principal Created: yes
Resource Group Created: no
Lifecycle Pipeline Created: no
Build Pipeline Created: no
ACR Created: no
Storage Account Created: no
Storage Table Created: no
Error: Error: azure-project-create-azure-err: Could not create Azure project.
Status: Incomplete`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants