Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tcotav/c59b358c11080226b99c to your computer and use it in GitHub Desktop.
Save tcotav/c59b358c11080226b99c to your computer and use it in GitHub Desktop.
using microsoft_azure_storage_container :retrieve
## use this for your metadata.rb
# for setup info -- see this https://github.com/chef-partners/azure-cookbook
depends 'microsoft_azure'
depends 'iis'
depends '7-zip'
###########################################
## how to use the resource
# you create these two things -- or in this case get an account + key from customer
storage_account = "myarchives"
account_key=<you create this>
container_name = "archives"
archive_name='placefull.package.7z'
archive_file= "#{Chef::Config[:file_cache_path]}/#{archive_name}" # where to write locally
microsoft_azure_storage_container 'my-node' do
storage_account storage_account
access_key account_key
container_name container_name
blob_name archive_name
local_filename archive_name
action :retrieve
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment