Skip to content

Azure-Samples/azure-sdk-for-rust-docs

Repository files navigation

Azure SDK for Rust Examples

Examples used in Microsoft Learn content.

Prerequisites

Authenticate for local development

Before you can run (test) the examples, you need to log into both az and azd to test different authentication examples, and to provision resources with azd:

az login
azd auth login

Create Azure resources

This samples use Azure Identity and Azure Key Vault. Use azd up from Azure Developer CLI to create these resources.

azd up

Run the examples

Running the examples will build them automatically. For whichever example file name you want to run:

cargo run --example authenticate_azure_dev_cli

You can also build all examples if you just want to make sure they are compilable:

cargo build --examples

Remove Azure resources

When you're done with the examples, you can remove the Azure resources created by azd up:

azd down

About

Examples using the Azure SDK for Rust

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •