Comments (8)
Please check the username and password for the windows image. You must give
that as the --winrm-username and --winrm-password.
Let me know this helps.
from knife-azure.
I created a new image and retested to make sure I had the credentials mirrored and the error persists. I also tried providing the username as machinename\username in case it was a domain issue, but that didn't help. I'm a little surprised that the credentials need to match the ones from the VM the image was created with since you normally provide new credentials each time you create a VM based on an image. It doesn't seem to be the source of my issue though.
from knife-azure.
So I've managed to get it to work by setting "--winrm-user Administrator". I didn't use Administrator for the user in the base image, any other username that I've tried fails with the 401.
While this is open, I see in the code that ssh bootstrapping is supported for windows VMs. Am I correct in thinking that the base image would have to be configured as an SSH server that starts on boot and listens on --ssh-port?
from knife-azure.
Yes. Thats right.
from knife-azure.
Hey @phoellig! Thank you for supporting this Opscode knife plugin! Our process has a couple prerequisites before we can merge your contribution. We need to ensure you've completed a Contributor License Agreement (CLA) and a ticket on our ticket tracker for the release workflow. I looked, but I could not find one under your name. Pull requests are optional, but should always include the ticket number that they're related to for cross-referencing. Please take a moment to review the below wiki page for the appropriate steps:
- http://wiki.opscode.com/display/chef/How+to+Contribute
- http://wiki.opscode.com/display/chef/Code+Review
Please feel free to ping me if you have any questions 😄
from knife-azure.
@sethvargo The CLA is in the process of getting set up with my company (PROS Inc.) at the moment. Hopefully that will move through relatively soon and I can start getting some fixes and enhancements back into the main line.
from knife-azure.
@phoellig okay sounds good! I moved your stacktrace to a gist to cleanup the description a bit
from knife-azure.
@phoellig
Seems this issue is resolved.
from knife-azure.
Related Issues (20)
- Master is broken for any azurerm server create operations that involve virtual networks
- `--delete-resource-group` works, but exits as failed HOT 1
- knife-azure does not work with latest chefdk (2.3.1). gem collision error HOT 1
- Unable to execute chef cookbooks in azure RM VM HOT 7
- knife azurerm command returns "azure: not recognized as an internal or external command" HOT 10
- Azure VM not created on using knife azurerm server create command HOT 5
- IniFile::Error HOT 6
- Creating VM using custom azure images HOT 5
- unable to use existing storage account / Vnet while creating new VM HOT 3
- azure_mgmt_resources conflict HOT 3
- Validatorless boostrap fails with error for knife azurerem server create.
- Not able to create VM with Standard_F2 size
- azure_mgmt_resources and azure_mgmt_network conflict errors HOT 2
- Improper error handling, always displays "Something went wrong". HOT 1
- --bootstrap-version is not working HOT 1
- Dependabot can't parse your Gemfile
- Azure VM not created on using knife azurerm server create command HOT 4
- Update the default platform versions to supported releases
- Move to the latest azure profile instead of 2018 API release
- Remove the legacy knife azure commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-azure.