Ich arbeite an Bereitstellung von azurblauen Boxen mit Vagrant. Ich folgte den Schritten, die unter dem folgenden Link https://stapp.space/setup-vagrant-with-azure/ erwähnt werden, um die Vagrant-Datei zu erstellen. Während der Ausführung von Vagrant Up-Befehl am Ende bin ich mit folgenden Fehlern konfrontiert enter code here
Es gibt Fehler in der Konfiguration dieses Systems. Bitte beheben die folgenden Fehler und versuchen Sie es erneut:Fehler während der Ausführung von vagrant up Befehl
Microsoft Azure Provider: * Die folgenden Einstellungen nicht existieren sollten: mgmt_certificate, mgmt_endpoint, ssh_c ertificate_file, ssh_port, ssh_private_key_file, vm_image, vm_location * Sie bieten müssen Azure Aktiv Verzeichnis-Mandanten-ID, Anwendungs-Client-ID und Anwendungs-Client-Secret über ENV oder Vagrantfile.
Vagrant Datei:
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'azure'
config.vm.box_url = 'https://github.com/msopentech/vagrant-azure/raw/master/dummy.box'
config.ssh.username = 'vagrant'
config.ssh.private_key_path = File.expand_path('C:\Windows\System32\cert.pem')
config.vm.provider :azure do |azure|
azure.mgmt_certificate = File.expand_path('C:\Windows\System32\cert.pem')
azure.mgmt_endpoint = 'https://management.core.windows.net'
azure.subscription_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
azure.cloud_service_name = 'Windows Azure MSDN - Visual Studio Ultimate(Converted to EA)12-9-2016-credentials'
azure.storage_acct_name = 'Windows Azure MSDN - Visual Studio Ultimate(Converted to EA)'
azure.deployment_name = 'azurevagrantdeployment'
azure.vm_name = 'azurevagrantsmall1'
azure.vm_password = 'vagrant123'
azure.vm_image = '03f55de797f546a1b29d1b8d66be687a__VS-2017-RC1-Comm-WS2012R22016-11-16 '
azure.vm_size = 'Small'
azure.vm_location = 'North Europe'
azure.ssh_port = '22'
azure.ssh_private_key_file = File.expand_path('C:\Windows\System32.pem')
azure.ssh_certificate_file = File.expand_path('C:\Windows\System32.cer')
azure.tcp_endpoints = '8000'
end
config.vm.provision 'shell', inline: 'echo OHAI'
end
bitte die optimale Lösung
Maschinenkonfiguration bieten: Windows 8.1 64-Bit-
danke für deinen Vorschlag @frederic henri. So erhalten Sie azure.client_id und –
'client_id' ist die Client-ID Ihrer Azure Active Directory-Anwendung. –