Skip to content

Consider Taking -WorkspaceKey Arg for Log Analytics Cmdlets #9052

Open
@timomta

Description

@timomta

Description of the new feature

Would love to see the option of -WorkspaceKey in addition to -WorkspaceId for Log Analytics cmdlets

Proposed implementation details (optional)

Log analytics cmdlets appear to rely on a user to log in with Connect-AzAccount. However, in situations where you'd like to automate with script, it would be very helpful if these cmdlets would take the WorkspaceId/WorkspaceKey combination and not requiring a user to log in when that combination of args is given.
For example, Invoke-AzOperationalInsightsQuery would be enabled to take -WorkspaceId xxxx and a new -WorkspaceKey xxxx argument. When both of those are present, it is not necessary to use Connect-AzAccount to authenticate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure PS TeamGeneratorRelated to cmdlet generatorfeature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions