Examples used in Microsoft Learn content.
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 loginThis samples use Azure Identity and Azure Key Vault. Use azd up from Azure Developer CLI to create these resources.
azd up
Running the examples will build them automatically. For whichever example file name you want to run:
cargo run --example authenticate_azure_dev_cliYou can also build all examples if you just want to make sure they are compilable:
cargo build --examplesWhen you're done with the examples, you can remove the Azure resources created by azd up:
azd down