Esempio n. 1
0
def create_instance(
    cmd,
    name,
    resource_group_name,
    location=None,
    tags=None,
    assign_identity=None,
    scopes=None,
    role_type="Contributor",
    public_network_access=ADTPublicNetworkAccessType.enabled.value,
):
    rp = ResourceProvider(cmd)
    return rp.create(
        name=name,
        resource_group_name=resource_group_name,
        location=location,
        tags=tags,
        assign_identity=assign_identity,
        scopes=scopes,
        role_type=role_type,
        public_network_access=public_network_access,
    )
def create_instance(cmd, name, resource_group_name, location=None, tags=None):
    rp = ResourceProvider(cmd)
    return rp.create(name=name,
                     resource_group_name=resource_group_name,
                     location=location,
                     tags=tags)