MCPcopy Index your code
hub / github.com/microsoft/PyRIT / set_subscription

Function set_subscription

infra/deploy_instance.py:99–107  ·  view source on GitHub ↗

Set the active Azure subscription. Args: subscription (str): The subscription name or ID.

(subscription: str)

Source from the content-addressed store, hash-verified

97
98
99def set_subscription(subscription: str) -> None:
100 """
101 Set the active Azure subscription.
102
103 Args:
104 subscription (str): The subscription name or ID.
105 """
106 logger.info("Setting subscription to: %s", subscription)
107 run_az(args=["account", "set", "--subscription", subscription])
108
109
110def create_resource_group(*, name: str, location: str, tags: list[str] | None = None) -> None:

Callers 1

mainFunction · 0.85

Calls 1

run_azFunction · 0.70

Tested by

no test coverage detected