-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{REST} Add tests for az rest with Microsoft Graph #13849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2ebea3d
023f831
25925dd
7f7c707
af67ef6
8b199e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| type: command | ||
| short-summary: Invoke a custom request. | ||
| long-summary: > | ||
| This command automatically authenticates using the credential logged in: If Authorization header is not set, it | ||
| This command automatically authenticates using the logged-in credential: If Authorization header is not set, it | ||
| attaches header `Authorization: Bearer <token>`, where `<token>` is retrieved from AAD. The target resource of the | ||
| token is derived from --url if --url starts with an endpoint from `az cloud show --query endpoints`. You may also | ||
| use --resource for a custom resource. | ||
|
|
@@ -21,16 +21,16 @@ | |
| examples: | ||
| - name: Get Audit log through Microsoft Graph | ||
| text: > | ||
| az rest --method get --uri https://graph.microsoft.com/beta/auditLogs/directoryAudits | ||
| az rest --method get --url https://graph.microsoft.com/beta/auditLogs/directoryAudits | ||
| - name: Update a Azure Active Directory Graph User's display name | ||
| text: > | ||
| az rest --method patch --uri "https://graph.microsoft.com/v1.0/users/johndoe@azuresdkteam.onmicrosoft.com" --body "{\\"displayName\\": \\"jondoe2\\"}" | ||
| az rest --method patch --url "https://graph.microsoft.com/v1.0/users/johndoe@azuresdkteam.onmicrosoft.com" --body "{\\"displayName\\": \\"jondoe2\\"}" | ||
| - name: Get a virtual machine | ||
| text: > | ||
| az rest --method get --uri /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2019-03-01 | ||
| - name: Create a public IP address from body.json file | ||
| text: > | ||
| az rest --method put --uri https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}?api-version=2019-09-01 --body @body.json | ||
| az rest --method put --url https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}?api-version=2019-09-01 --body @body.json | ||
| """ | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So our current specification is that if it's a URL parameter we should use |
||
| helps['version'] = """ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.