Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Sample for managing resources via MSI Identity#1

Merged
vishrutshah merged 5 commits intoAzure-Samples:masterfrom
vishrutshah:sample
Sep 13, 2017
Merged

Sample for managing resources via MSI Identity#1
vishrutshah merged 5 commits intoAzure-Samples:masterfrom
vishrutshah:sample

Conversation

@vishrutshah
Copy link
Copy Markdown
Contributor

@vishrutshah vishrutshah commented Aug 26, 2017

Gemfile Outdated
gem 'vcr', '~>3.0'
end

gem 'ms_rest_azure', path: 'C:\Users\vishrut\repo\azure-sdk-for-ruby\runtime\ms_rest_azure'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the dependency after releasing on 08/28 :)

@vishrutshah vishrutshah self-assigned this Aug 26, 2017
Copy link
Copy Markdown
Contributor

@veronicagg veronicagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, you may want to add some sentences for each section where you explain the sample, if there's something you think it's worth adding. Thanks!

### Create an Azure Vault

```ruby
puts 'Creating key vault account with MSI Identity...'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there anything special on the key vault account creation related to MSI Identity, or is it just the fact that's created under the ResourceGroup that was created with MSITokenProvider? If so, it may be worth commenting on it.

@@ -0,0 +1,8 @@
# This is a sample of what your .env file should look like if you wanted to run integration tests.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This is a sample of your .env file to run integration tests.

@@ -0,0 +1,8 @@
# This is a sample of what your .env file should look like if you wanted to run integration tests.
# If you move this file to the .env and replace the environment variables with your own values, then the environment
# will be included when the rake test tasks are executed. Otherwise, you could just export the environment vars
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:Otherwise, you could just export the environment variables manually

<a id="run"></a>
## Run this sample

1. log in to the above Azure virtual machine which has MSI service running and then follow the steps on that VM.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All steps are marked with 1.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahah thanks for catching..updated

README.md Outdated
git clone https://github.com/Azure-Samples/resources-ruby-manage-resources-with-msi.git
```

1. Install the dependencies using bundle.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using bundler

README.md Outdated
```

<a id="example"></a>
## What is example.rb doing?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:What does example.rb do?

@vishrutshah
Copy link
Copy Markdown
Contributor Author

@sarangan12 @veronicagg Let me know if you have any more comments. Thanks!

Copy link
Copy Markdown
Contributor

@veronicagg veronicagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just minor comment inline.

.env_sample Outdated
@@ -1,7 +1,7 @@
# This is a sample of what your .env file should look like if you wanted to run integration tests.
# This is a sample of what your .env file to run integration tests.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something seems odd with this sentence, not sure what you meant to change it to.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( now I read it and wonder as well..I'll keep it as-is as that seems structured

@vishrutshah
Copy link
Copy Markdown
Contributor Author

Thanks for the review!!

@vishrutshah vishrutshah changed the title [In Review] Sample for managing resources vis MSI Identity Sample for managing resources via MSI Identity Sep 13, 2017
@vishrutshah vishrutshah merged commit ca7bf76 into Azure-Samples:master Sep 13, 2017
@vishrutshah vishrutshah deleted the sample branch September 13, 2017 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants