Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Parse Azure Resource IDs into models #1464

@ranweiler

Description

@ranweiler

In onefuzz.azure.image, for example, we use msrestazure.tools.parse_resource_id() to get a dict representation of the components of an Azure Resource ID. This is very dynamic and weakly-typed, and prone to absent keys in some situations, as a result of the parse_resource_id() function's return type and API.

Instead of doing ad hoc, implicit recognition of what kind of resource we are parsing, we should have models for the resource types we know about, grouped in a Union.

See comment: https://github.com/microsoft/onefuzz/pull/1450/files#r751810404

AB#35946

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions