Giter VIP home page Giter VIP logo

Comments (6)

bingosummer avatar bingosummer commented on July 18, 2024

@ritazh It seems that your service principal (tenant_id, client_id, client_secret) is invalid. You can verify it with the following operations:

  1. Use Azure CLI to login with your service principal. If you can not login, then the service principal is invalid.
  2. Verify that the subscription which the service principal belongs to is the same subscription which is used to create your resource group. (This may happen when you have multiple subscriptions)

from bosh-azure-cpi-release.

ritazh avatar ritazh commented on July 18, 2024

Closing this as the issue was caused by a bad tenant_id passed into the template.

from bosh-azure-cpi-release.

mdcarlson avatar mdcarlson commented on July 18, 2024

In case others run across this issue, I received this error when attempting to use a newly created free trial account without first creating a new user in Active Directory. Instructions here. Be sure to use the subscription ID from the new user and not the one from the initial free trial account.

from bosh-azure-cpi-release.

techiechap avatar techiechap commented on July 18, 2024

I have ran into issue while deploying the bosh, i get an error
./deploy_bosh.sh: line 44: unexpected EOF while looking for matching `"'
1 #!/usr/bin/env bash
2
3 set -e
4
5 export BOSH_LOG_LEVEL="debug"
6 export BOSH_LOG_PATH="./run.log"
7
8 bosh create-env /example_manifests/bosh.yml
9 --state=state.json
10 --vars-store=
/bosh-deployment-vars.yml
11 -o ~/example_manifests/cpi.yml
12 -o ~/example_manifests/use-location.yml
13 -o ~/example_manifests/custom-cpi-release.yml
14 -o ~/example_manifests/custom-environment.yml
15 -o ~/example_manifests/use-azure-dns.yml
16 -o ~/example_manifests/jumpbox-user.yml
17 -o ~/example_manifests/keep-failed-or-unreachable-vms.yml
18 -o ~/example_manifests/uaa.yml
19 -o ~/example_manifests/credhub.yml
20 -v director_name=azure
21 -v internal_cidr=10.0.0.0/24
22 -v internal_gw=10.0.0.1
23 -v internal_ip=10.0.0.4
24 -v cpi_release_url=https://bosh.io/d/github.com/cloudfoundry/bosh-azure-cpi-release?v=35.5.0
25 -v cpi_release_sha1=faebe370c143554fe471c3f6aafb523ab48c43ea
26 -v director_vm_instance_type=Standard_D2_v2
27 -v resource_group_name=cloudfoundry-RG
28 -v location=northcentralus
29 -v vnet_name=boshvnet-crp
30 -v subnet_name=Bosh
31 -v default_security_group=nsg-bosh
32 -v environment=AzureCloud
33 -v subscription_id=xxx
34 -v tenant_id=xxx
35 -v client_id=xxx
36 -v client_secret=""xxx"
37 -o ~/example_manifests/use-managed-disks.yml
38
39 cat >> "/home/dcadmin/.profile" << EndOfFile
40 # BOSH CLI
41 export BOSH_ENVIRONMENT=10.0.0.4
42 export BOSH_CLIENT=admin
43 export BOSH_CLIENT_SECRET="$(bosh int ~/bosh-deployment-vars.yml --path /admin_password)"
44 export BOSH_CA_CERT="$(bosh int ~/bosh-deployment-vars.yml --path /director_ssl/ca)"
45 EndOfFile
46 source /home/dcadmin/.profile

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

@techiechap -v client_secret=""xxx" this line has an extra ".

Additionally, if the client_secret is your real service principal secret, you should not post it in public network without redacting it. You may want to reset your secret.

from bosh-azure-cpi-release.

techiechap avatar techiechap commented on July 18, 2024

My bad, I have deleted the SP, yes will try to spin it again

from bosh-azure-cpi-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.