Azure CLI commands for communication#4206
Conversation
…avithanneeru/azure-cli-extensions into v-ratann/Communicaton-commands
|
@ravithanneeru could you pull the latest code and commit again? |
…avithanneeru/azure-cli-extensions into v-ratann/Communicaton-commands
@kairu-ms latest code taken and all checks passing now. |
| helps['communication identity issue-access-token'] = """ | ||
| type: command | ||
| short-summary: "Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well." | ||
| examples: | ||
| - name: issue-access-token | ||
| text: |- | ||
| az communication identity issue-access-token --scope chat | ||
| - name: issue-access-token with multiple scopes and userid | ||
| text: |- | ||
| az communication identity issue-access-token --scope chat voip --userid "8:acs:xxxxxx" | ||
| """ |
There was a problem hiding this comment.
What's this command used for? Where will user use the access token?
There was a problem hiding this comment.
@kairu-ms This command is used for generate an access_token can be used to make call to communication service endpoints. This command help achieve this in azure cli - Quickstart: Create and manage access tokens
There was a problem hiding this comment.
@moirf, If you want to release this extension, you should update the version of the extension and add release history
There was a problem hiding this comment.
@kairu-ms version and release history updated.
|
|
||
|
|
||
| # pylint: disable=unused-argument | ||
| def cf_communication_identity(cli_ctx, kwargs): |
Updated the Readme file.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.jsonautomatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json.