Skip to content

Error in: samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-arc-sql-license-type.ps1 #1405

Open
@djcampbell

Description

@djcampbell

Issue: The script uses Search-AzGraph to locate resources. Search-AzGraph does not honor AzContext when executing in Cloud Shell. This is a problem when you have more than 1000 subscriptions. The Search-AzGraph commandlet only returns results from the first 1000 subscriptions even though AzContext is filtered to 1 sub and you have only passed 1 sub to the modify-arc-sql-license-type script.

In my test case, I am attempting to run the script against a device in a specific sub, but it cannot be found. I have access to over 2800 subs and the device I am looking for is not in the first 1000 subs.

Possible solution: Update Search-AzGraph to honor AzContext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions