Skip to content

Commit

Permalink
update vm_list example
Browse files Browse the repository at this point in the history
  • Loading branch information
cataggar committed Jan 7, 2024
1 parent 2b4d01b commit 19e68db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/mgmt/resourcegraph/examples/vm_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ use azure_mgmt_resourcegraph::{
models::{QueryRequest, QueryRequestOptions},
Client,
};
use std::sync::Arc;

#[tokio::main]
async fn main() -> azure_core::Result<()> {
let azure_creds = Arc::new(DefaultAzureCredential::default());
let client = Client::builder(azure_creds).build()?;
let credential = azure_identity::create_credential()?;
let client = Client::builder(credential).build()?;

// query 10 records at a time
let options = Some(QueryRequestOptions {
Expand Down

0 comments on commit 19e68db

Please sign in to comment.